September 2, 2014
Hot Topics:
RSS RSS feed Download our iPhone app

PocketPC-Adding a Permanent Menu Entry to the New Button Menu

  • December 12, 2002
  • By Amit Dey
  • Send Email »
  • More Articles »

Introduction

For a PocketPC application that I was writing recently, one of my tasks was to add a custom menu entry to the PocketPC New Button Menu. Because I've seen that the topic gets asked enough times on Pocket PC programming forums, I thought I'd write something to this end. Of course, you can always look through the documentation to New Menu items that comes along with the PocketPC SDK for reference. Through this brief tutorial I will show you the steps involved to do this. The sample project adds such menu items and handles respective menu clicks.

I assume you are a PocketPC programmer developing with embedded Visual C++ 3.0 and have some experience programming COM, although newbie eVC++ programmers shouldn't have any problems following.

Overview

The New Button, present at the bottom of the PocketPC Today screen, allows the user to quickly create a new item of any type and launches the parent application. Clicking the New Button displays a popup menu that consists of a list of menu items, each of which gives the user quick access to commonly used items such as Contacts, New E-mail Messages, or document types such as Word documents, Excel wordbooks, and so forth. The New Button and all individual menu entries can be enabled and disabled in the New Menu property page that comes up thru Start->Settings->Menus and clicking the New Menu tab.

Adding custom menu items to the New Button menu is very easy, as you will find out. The cool thing here is that you can do all this with fewer than 10 lines of code if you are using a framework such as ATL for your COM object.





Page 1 of 2



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Sitemap | Contact Us

Rocket Fuel