Add items to the menu by either:
Calling the method AddMenuItemL() in the class CAknStylusPopUpMenu for each menu item to be added or
Creating the entire menu instance from a resource by calling CAknStylusPopUpMenu::ConstructFromResourceL(). This requires a STYLUS_POPUP_MENU resource structure that contains the items in the structure STYLUS_POPUP_MENU_ITEM.
If the menu already contains the maximum number of items, CAknStylusPopUpMenu::AddMenuItemL() will do nothing. The same applies to CAknStylusPopUpMenu::ConstructFromResourceL(): it will only add the maximum number of menu items even if there were more items defined in the resource.
To remove items, use the method CAknStylusPopUpMenu::RemoveItem().
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.