After alt-tabbing away, setup doesn't have a recognizable icon when
looking for it to alt-tab back.  Set the big icon.

2010-11-05  Jon TURNEY  <[email protected]>

        * propsheet.cc (PropSheetProc): Set the big icon for the propsheet
        window
---
 propsheet.cc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/propsheet.cc b/propsheet.cc
index 8d32c4a..082b69f 100644
--- a/propsheet.cc
+++ b/propsheet.cc
@@ -271,6 +271,11 @@ PropSheetProc (HWND hwndDlg, UINT uMsg, LPARAM lParam)
       return TRUE;
     case PSCB_INITIALIZED:
       {
+        /*
+          PropSheet() with PSH_USEICONID only sets the small icon,
+          so we must set the big icon ourselves
+        */
+        SendMessage(hwndDlg, WM_SETICON, ICON_BIG, 
(LPARAM)LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_CYGWIN)));
        /*
          Hook into the window proc.
          We need to catch some messages for resizing.
-- 
1.7.2.3

Reply via email to