本文整理汇总了C++中ActionManager::ShowAboutDlg方法的典型用法代码示例。如果您正苦于以下问题:C++ ActionManager::ShowAboutDlg方法的具体用法?C++ ActionManager::ShowAboutDlg怎么用?C++ ActionManager::ShowAboutDlg使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActionManager
的用法示例。
在下文中一共展示了ActionManager::ShowAboutDlg方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HandleGeneralCommands
BOOL MenuManager::HandleGeneralCommands(MenuCommandsEnum cmd)
{
TRACEST(_T("MenuManager::HandleGeneralCommands"), cmd);
PrgAPI* pAPI = PRGAPI();
ActionManager* pAM = pAPI->GetActionManager();
switch (cmd)
{
case MENU_Exit:
AfxGetMainWnd()->PostMessage(WM_QUIT);
break;
case MENU_ShowMainWindow:
pAM->ShowMainWindow();
break;
case MENU_ShowMiniPlayer:
pAPI->GetMiniPlayerDlg(TRUE)->ShowWindow(TRUE);
break;
case MENU_HideMiniPlayer:
{
CMiniPlayerDlg* pMPDlg = pAPI->GetMiniPlayerDlg(FALSE);
if (pMPDlg)
pMPDlg->ShowWindow(SW_HIDE);
}
break;
//case MENU_ToggleMiniPlayer:
// pAPI->GetActionManager()->ShowMiniPlayer(!pAPI->GetActionManager()->IsMiniPlayerVisible());
// break;
case MENU_ShowAboutDlg:
pAM->ShowAboutDlg(AfxGetMainWnd());
break;
case MENU_ShowHistoryDlg:
pAM->ShowHistoryDlg(AfxGetMainWnd());
break;
case MENU_ShowGamesDlg:
pAM->ShowGamesDlg(AfxGetMainWnd());
break;
case MENU_ShowAdvancedSearch:
pAPI->GetAdvancedSearchDlg()->ShowWindow(SW_SHOW);
break;
case MENU_ShowOptionsDlg:
pAM->ShowOptionsDlg(AfxGetMainWnd());
break;
case MENU_ShowCollectionsDlg:
pAM->ShowCollectionsDlg(AfxGetMainWnd());
break;
case MENU_UpdateLocalCollections:
pAPI->GetCollectionManager()->RefreshLocalCollections(TRUE, FALSE, TRUE);
break;
case MENU_ShowSkinsDialog:
pAM->ShowSkinsDlg(AfxGetMainWnd());
break;
case MENU_ShowLanguagesDialog:
pAM->ShowLanguagesDlg(AfxGetMainWnd());
break;
default:
return FALSE;
}
return TRUE;
}