Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Mobile
 Context Menu Extension Handler

  Switch on low bandwidth view
Context Menu Extension Handler
Windows Mobile SupportedWindows Embedded CE Not Supported
8/28/2008

This code sample is named CTXMenu. It demonstrates how to implement a context menu extension handler. The application extends the File Explorer context menu that appears when you tap and hold a file.

To run the code sample
  1. Run "guidgen.exe" to generate a new GUID.

  2. Copy this GUID to "guids.h", replacing the one that is already there.

  3. Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:

    C:\Program Files\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\ctxmenu

    Microsoft Visual Studio 2005 launches and loads the solution.

  4. Build the solution (Ctrl+Shift+B).

  5. Deploy the solution (F5). ctxmenu.dll is registered. built, and deployed to the folder \windows.

To use the application
  1. Launch File Explorer on the mobile device.

  2. Tap and hold on any .BMP file to bring up the context menu. You should see an additional menu item.

The filename is retrieved from File Explorer via the IDataObject:IUnknown interface.

Context menu extensions are only loaded when a single file is selected; if multiple files are selected and the user invokes the context menu, File Explorer will not load any extension handlers.

SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK

Development Environment: Visual Studio 2005.

ActiveSync: Version 4.5.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Not applicable to Windows Mobile 6 Standard SDK      redsolo ... Thomas Lee   |   Edit   |   Show History
The sample does not work out of the box with a Windows Mobile 6 Standard emulator. Also the sample only exists in the PPC folder.
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker