To hide and show stylus pop-up menu items, use the method CAknStylusPopUpMenu::SetItemDimmed()
in the
class.
// You can remove the menu item dynamically according to the command id. For example: iPopupMenu->RemoveMenuItem( StylusMenuCommand1 ); // You can dim (hide) a menu item without removing it iPopupMenu->SetItemDimmed( StylusMenuDynamicAdd, ETrue ); // You can un-dim(show) the menu item again: iPopupMenu->SetItemDimmed( StylusMenuDynamicAdd, EFalse );