From 6f86573d7b9e898b274b9d3ea44dbe423628958d Mon Sep 17 00:00:00 2001 From: sje Date: Sun, 4 Feb 2007 12:04:51 +0000 Subject: GDI resource usage patch by borkra git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@113 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/progress_dialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'updater/progress_dialog.cpp') 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; -- cgit v1.2.3