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; }