mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[RAPPS] Open "Installed" section in Appwiz-mode when RAPPS already runs
CORE-18981
This commit is contained in:
parent
ff1fa4f38a
commit
acbb73a89d
4 changed files with 12 additions and 1 deletions
|
@ -94,7 +94,7 @@ CMainWindow::~CMainWindow()
|
|||
VOID
|
||||
CMainWindow::InitCategoriesList()
|
||||
{
|
||||
HTREEITEM hRootItemInstalled, hRootItemAvailable;
|
||||
HTREEITEM hRootItemAvailable;
|
||||
|
||||
hRootItemInstalled = m_TreeView->AddCategory(TVI_ROOT, IDS_INSTALLED, IDI_CATEGORY);
|
||||
m_TreeView->AddCategory(hRootItemInstalled, IDS_APPLICATIONS, IDI_APPS);
|
||||
|
@ -557,6 +557,11 @@ CMainWindow::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||
case ID_CHECK_ALL:
|
||||
m_ApplicationView->CheckAll();
|
||||
break;
|
||||
|
||||
case ID_ACTIVATE_APPWIZ:
|
||||
if (hRootItemInstalled)
|
||||
m_TreeView->SelectItem(hRootItemInstalled);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@ class CMainWindow : public CWindowImpl<CMainWindow, CWindow, CFrameWinTraits>
|
|||
|
||||
BOOL bUpdating = FALSE;
|
||||
BOOL bAppwizMode;
|
||||
HTREEITEM hRootItemInstalled;
|
||||
|
||||
CStringW szSearchPattern;
|
||||
AppsCategories SelectedEnumType;
|
||||
|
|
|
@ -85,6 +85,9 @@
|
|||
#define ID_CHECK_ALL 562
|
||||
#define ID_SEARCH 563
|
||||
|
||||
/* Messages */
|
||||
#define ID_ACTIVATE_APPWIZ 600
|
||||
|
||||
/* Strings */
|
||||
#define IDS_APPTITLE 100
|
||||
#define IDS_SEARCH_TEXT 101
|
||||
|
|
|
@ -259,6 +259,8 @@ ParseCmdAndExecute(LPWSTR lpCmdLine, BOOL bIsFirstLaunch, int nCmdShow)
|
|||
/* Activate window */
|
||||
ShowWindow(hWindow, SW_SHOWNORMAL);
|
||||
SetForegroundWindow(hWindow);
|
||||
if (bAppwizMode)
|
||||
PostMessage(hWindow, WM_COMMAND, ID_ACTIVATE_APPWIZ, 0);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue