本文整理汇总了C++中CommandManager::dismissMenu方法的典型用法代码示例。如果您正苦于以下问题:C++ CommandManager::dismissMenu方法的具体用法?C++ CommandManager::dismissMenu怎么用?C++ CommandManager::dismissMenu使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommandManager
的用法示例。
在下文中一共展示了CommandManager::dismissMenu方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/**
* Hide and delete resource function pointer.
* This function should notify its Items to hide as well.
*
* @param cmPtr pointer to menu native peer
* @param onExit true if this is called during VM exit.
* All native resource must be deleted in this case.
* @return status of this call
*/
extern "C" MidpError
cmdmanager_hide_and_delete(MidpFrame* cmPtr, jboolean onExit) {
CommandManager *cmdMgr = (CommandManager *)cmPtr->widgetPtr;
if (onExit) {
// Delete Command Manager and its children popup menus
delete cmdMgr;
} else {
// Hide any popup menu
cmdMgr->dismissMenu();
}
return KNI_OK;
}