Click here to Skip to main content
16,005,734 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Any C# VS2003 Code for Pocket PC Pin
Mahesh Varma26-Jan-04 19:57
Mahesh Varma26-Jan-04 19:57 
GeneralRe: Any C# VS2003 Code for Pocket PC Pin
camasmartin27-Jan-04 11:05
camasmartin27-Jan-04 11:05 
GeneralRead/write INI files with eVC++4 Pin
Rico Salfer26-Jan-04 4:52
Rico Salfer26-Jan-04 4:52 
GeneralRe: Read/write INI files with eVC++4 Pin
João Paulo Figueira26-Jan-04 5:13
professionalJoão Paulo Figueira26-Jan-04 5:13 
General__try / __finally Pin
IceBerG7125-Jan-04 23:58
IceBerG7125-Jan-04 23:58 
GeneralAdding a new menu option in Calendar of Pocket PC Pin
A_goyal25-Jan-04 21:33
A_goyal25-Jan-04 21:33 
GeneralRe: Adding a new menu option in Calendar of Pocket PC Pin
João Paulo Figueira25-Jan-04 22:11
professionalJoão Paulo Figueira25-Jan-04 22:11 
GeneralRe: Adding a new menu option in Calendar of Pocket PC Pin
João Paulo Figueira26-Jan-04 1:06
professionalJoão Paulo Figueira26-Jan-04 1:06 
For Pocket PC 2003, look under Adding Menu Commands for External Applications.

Quote:
The Calendar, Tasks, and Contacts applications support menu add-ins for external applications. If you provide an add-in to one of these applications, your command will appear on the Tools menu. When the user selects your command, a function in a registered DLL will be called, passing in the object identifiers of items that were selected in the application at the time the menu item was selected.

To register your application, you need to create a registry key under the HKEY_LOCAL_MACHINE root. To avoid conflicting with other add-ins, it is suggested that the key you choose contain your company's name. PIMAPP should be replaced with Contacts, Tasks, or Calendar depending on which application you want your menu to appear in.

To create a menu add-in

Register your application by creating a registry. The registry will exist in the following key, and can be named whatever you want:
HKEY_LOCAL_MACHINE\Software\Microsoft\PimApps\PimExtensions\PIMAPP\AddIns

Create an entry under this key, DLL, where the value of the entry is the name of your DLL.
Create a second entry, Menu, in which the value of the entry is the menu name you want displayed from the Tools menu.
The DLL that you register must expose the CePimCommand function, which will be called when the user selects your command. The following code sample shows the exposed function:

void CePimCommand (HWND hWnd, PIMTYPE ptData, UINT uDataCount,
 *rghData, void *pReserved);

PIMTYPE is an enumeration, defined as follows:

typedef enum tagPIMTYPE
{
 PT_CALENDAR = 0,
 PT_TASKS,
 PT_CONTACT
} PIMTYPE;

The following table shows parameters associated with the CePimCommand function.

Parameter Comments
HWND hWnd Application window handle
PIMTYPE ptData The application that is calling this function
UINT uDataCount The number of items in the array rghData
HANDLE *rghData An array of Microsoft Windows CE object identifiers indicating which items are currently selected
void *pReserved Reserved parameter


You can manipulate items from their object identifiers by calling the GetItemFromOid method in the Application object. You can use GetOidFromRef for menu extensibility.



Regards,
João Paulo
GeneralA question about displays Pin
LunaticFringe23-Jan-04 13:13
LunaticFringe23-Jan-04 13:13 
GeneralRe: A question about displays Pin
João Paulo Figueira24-Jan-04 6:53
professionalJoão Paulo Figueira24-Jan-04 6:53 
GeneralRe: A question about displays Pin
LunaticFringe28-Jan-04 23:02
LunaticFringe28-Jan-04 23:02 
GeneralPocket PC Pocket Word Pin
annum22-Jan-04 16:53
annum22-Jan-04 16:53 
GeneralRe: Pocket PC Pocket Word Pin
Mahesh Varma26-Jan-04 19:49
Mahesh Varma26-Jan-04 19:49 
GeneralRe: Pocket PC Pocket Word Pin
annum11-Feb-04 7:40
annum11-Feb-04 7:40 
GeneralMenues in Dialogs Pin
Like2Byte22-Jan-04 8:45
Like2Byte22-Jan-04 8:45 
GeneralRe: Menues in Dialogs Pin
Like2Byte22-Jan-04 15:38
Like2Byte22-Jan-04 15:38 
QuestionApp licensing/copy protection on PDA's? Pin
LunaticFringe22-Jan-04 6:40
LunaticFringe22-Jan-04 6:40 
Questionmy app just disappers?!? Pin
slomoman21-Jan-04 0:49
slomoman21-Jan-04 0:49 
QuestionDoes Update Statement works??? Pin
Rassul Yunussov21-Jan-04 0:36
Rassul Yunussov21-Jan-04 0:36 
AnswerRe: Does Update Statement works??? Pin
João Paulo Figueira21-Jan-04 1:24
professionalJoão Paulo Figueira21-Jan-04 1:24 
QuestionHow do I get the FocusRectangle on a button? Pin
kiyoko20-Jan-04 20:23
kiyoko20-Jan-04 20:23 
AnswerRe: How do I get the FocusRectangle on a button? Pin
João Paulo Figueira20-Jan-04 22:30
professionalJoão Paulo Figueira20-Jan-04 22:30 
GeneralRe: How do I get the FocusRectangle on a button? Pin
kiyoko21-Jan-04 19:54
kiyoko21-Jan-04 19:54 
GeneralRe: How do I get the FocusRectangle on a button? Pin
João Paulo Figueira21-Jan-04 21:54
professionalJoão Paulo Figueira21-Jan-04 21:54 
GeneralRe: How do I get the FocusRectangle on a button? Pin
kiyoko24-Jan-04 21:30
kiyoko24-Jan-04 21:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.