summaryrefslogtreecommitdiff
path: root/updater/progress_dialog.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-02-04 12:04:51 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-02-04 12:04:51 +0000
commit6f86573d7b9e898b274b9d3ea44dbe423628958d (patch)
tree52fc6312ba8e6ff3c78b0974ac7dfd1d1d175f1e /updater/progress_dialog.cpp
parent58e80d590afb95afa5e52dfa5cb8efc60f206cd5 (diff)
GDI resource usage patch by borkra
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@113 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/progress_dialog.cpp')
-rw-r--r--updater/progress_dialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/updater/progress_dialog.cpp b/updater/progress_dialog.cpp
index bdcb922..886ba76 100644
--- a/updater/progress_dialog.cpp
+++ b/updater/progress_dialog.cpp
@@ -20,8 +20,8 @@ BOOL CALLBACK DlgProcProgress(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
// these change icons for all system dialogs!
//SetClassLong(hwndDlg, GCL_HICON, (LONG)hIconCheck);
//SetClassLong(hwndDlg, GCL_HICONSM, (LONG)hIconCheck);
- SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)hIconCheck);
- SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)hIconCheck);
+ SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)LoadIconEx(I_CHKUPD));
+ SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)LoadIconEx(I_CHKUPD));
SAVEWINDOWPOS swp;
swp.hwnd=hwndDlg; swp.hContact=0; swp.szModule=MODULE; swp.szNamePrefix="ProgressWindow";
@@ -73,6 +73,8 @@ BOOL CALLBACK DlgProcProgress(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
case WM_DESTROY:
KillTimer(hwndDlg, ID_PROGTIMER);
Utils_SaveWindowPosition(hwndDlg,0,MODULE,"ProgressWindow");
+ ReleaseIconEx((HICON)SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)0));
+ ReleaseIconEx((HICON)SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)0));
break;
}
return FALSE;