This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 4/5] Set icon used by alt-tab task switcher for setup


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  <jon.turney@dronecode.org.uk>

	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]