mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[ZIPFLDR] Set large icon correctly (#4708)
Now it's correctly displayed in Alt+Tab window selection.
This commit is contained in:
parent
305aae75f5
commit
7244a4a2f5
1 changed files with 15 additions and 1 deletions
|
@ -331,10 +331,23 @@ public:
|
|||
};
|
||||
|
||||
|
||||
/* NOTE: This callback is needed to set large icon correctly. */
|
||||
static INT CALLBACK s_PropSheetCallbackProc(HWND hwndDlg, UINT uMsg, LPARAM lParam)
|
||||
{
|
||||
if (uMsg == PSCB_INITIALIZED)
|
||||
{
|
||||
HICON hIcon = LoadIconW(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCEW(IDI_ZIPFLDR));
|
||||
CWindow dlg(hwndDlg);
|
||||
dlg.SetIcon(hIcon, TRUE);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void runWizard()
|
||||
{
|
||||
PROPSHEETHEADERW psh = { sizeof(psh), 0 };
|
||||
psh.dwFlags = PSH_WIZARD97 | PSH_HEADER | PSH_USEICONID;
|
||||
psh.dwFlags = PSH_WIZARD97 | PSH_HEADER | PSH_USEICONID | PSH_USECALLBACK;
|
||||
psh.hInstance = _AtlBaseModule.GetResourceInstance();
|
||||
|
||||
CExtractSettingsPage extractPage(this, &m_Password);
|
||||
|
@ -350,6 +363,7 @@ public:
|
|||
psh.pszIcon = MAKEINTRESOURCE(IDI_ZIPFLDR);
|
||||
psh.pszbmWatermark = MAKEINTRESOURCE(IDB_WATERMARK);
|
||||
psh.pszbmHeader = MAKEINTRESOURCE(IDB_HEADER);
|
||||
psh.pfnCallback = s_PropSheetCallbackProc;
|
||||
|
||||
PropertySheetW(&psh);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue