Use the method HandleControlEventL() in the class CAknStylusPopUpMenu to handle events that occur when user selects a menu item.
HandleControlEventL()
CAknStylusPopUpMenu