mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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
|
VOID
|
||||||
CMainWindow::InitCategoriesList()
|
CMainWindow::InitCategoriesList()
|
||||||
{
|
{
|
||||||
HTREEITEM hRootItemInstalled, hRootItemAvailable;
|
HTREEITEM hRootItemAvailable;
|
||||||
|
|
||||||
hRootItemInstalled = m_TreeView->AddCategory(TVI_ROOT, IDS_INSTALLED, IDI_CATEGORY);
|
hRootItemInstalled = m_TreeView->AddCategory(TVI_ROOT, IDS_INSTALLED, IDI_CATEGORY);
|
||||||
m_TreeView->AddCategory(hRootItemInstalled, IDS_APPLICATIONS, IDI_APPS);
|
m_TreeView->AddCategory(hRootItemInstalled, IDS_APPLICATIONS, IDI_APPS);
|
||||||
|
@ -557,6 +557,11 @@ CMainWindow::OnCommand(WPARAM wParam, LPARAM lParam)
|
||||||
case ID_CHECK_ALL:
|
case ID_CHECK_ALL:
|
||||||
m_ApplicationView->CheckAll();
|
m_ApplicationView->CheckAll();
|
||||||
break;
|
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 bUpdating = FALSE;
|
||||||
BOOL bAppwizMode;
|
BOOL bAppwizMode;
|
||||||
|
HTREEITEM hRootItemInstalled;
|
||||||
|
|
||||||
CStringW szSearchPattern;
|
CStringW szSearchPattern;
|
||||||
AppsCategories SelectedEnumType;
|
AppsCategories SelectedEnumType;
|
||||||
|
|
|
@ -85,6 +85,9 @@
|
||||||
#define ID_CHECK_ALL 562
|
#define ID_CHECK_ALL 562
|
||||||
#define ID_SEARCH 563
|
#define ID_SEARCH 563
|
||||||
|
|
||||||
|
/* Messages */
|
||||||
|
#define ID_ACTIVATE_APPWIZ 600
|
||||||
|
|
||||||
/* Strings */
|
/* Strings */
|
||||||
#define IDS_APPTITLE 100
|
#define IDS_APPTITLE 100
|
||||||
#define IDS_SEARCH_TEXT 101
|
#define IDS_SEARCH_TEXT 101
|
||||||
|
|
|
@ -259,6 +259,8 @@ ParseCmdAndExecute(LPWSTR lpCmdLine, BOOL bIsFirstLaunch, int nCmdShow)
|
||||||
/* Activate window */
|
/* Activate window */
|
||||||
ShowWindow(hWindow, SW_SHOWNORMAL);
|
ShowWindow(hWindow, SW_SHOWNORMAL);
|
||||||
SetForegroundWindow(hWindow);
|
SetForegroundWindow(hWindow);
|
||||||
|
if (bAppwizMode)
|
||||||
|
PostMessage(hWindow, WM_COMMAND, ID_ACTIVATE_APPWIZ, 0);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue