mirror of
https://github.com/reactos/reactos.git
synced 2024-09-18 00:33:04 +00:00
[RAPPS] Fix the fact that the rapps download dialog uses the 32pixel icon for the download window. By Ismael Ferreras Morezuelas (IRC name swyter). CORE-9750
svn path=/trunk/; revision=68096
This commit is contained in:
parent
f3c5b91037
commit
6a8943cf42
|
@ -30,7 +30,6 @@
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
|
|
||||||
static PAPPLICATION_INFO AppInfo;
|
static PAPPLICATION_INFO AppInfo;
|
||||||
static HICON hIcon = NULL;
|
|
||||||
|
|
||||||
typedef struct _IBindStatusCallbackImpl
|
typedef struct _IBindStatusCallbackImpl
|
||||||
{
|
{
|
||||||
|
@ -378,12 +377,15 @@ DownloadDlgProc(HWND Dlg, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
switch (Msg)
|
switch (Msg)
|
||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
HICON hIconSm = NULL, hIconBg = NULL;
|
||||||
|
|
||||||
hIcon = LoadIconW(hInst, MAKEINTRESOURCEW(IDI_MAIN));
|
hIconBg = (HICON)GetClassLongPtr(hMainWnd, GCLP_HICON);
|
||||||
if (hIcon)
|
hIconSm = (HICON)GetClassLongPtr(hMainWnd, GCLP_HICONSM);
|
||||||
|
|
||||||
|
if (hIconBg && hIconSm)
|
||||||
{
|
{
|
||||||
SendMessageW(Dlg, WM_SETICON, ICON_BIG, (LPARAM) hIcon);
|
SendMessageW(Dlg, WM_SETICON, ICON_BIG, (LPARAM) hIconBg);
|
||||||
SendMessageW(Dlg, WM_SETICON, ICON_SMALL, (LPARAM) hIcon);
|
SendMessageW(Dlg, WM_SETICON, ICON_SMALL, (LPARAM) hIconSm);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetWindowLongPtrW(Dlg, GWLP_USERDATA, 0);
|
SetWindowLongPtrW(Dlg, GWLP_USERDATA, 0);
|
||||||
|
@ -408,7 +410,6 @@ DownloadDlgProc(HWND Dlg, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
if (hIcon) DestroyIcon(hIcon);
|
|
||||||
EndDialog(Dlg, 0);
|
EndDialog(Dlg, 0);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue