[PATCH 4/5] Set icon used by alt-tab task switcher for setup
Jon TURNEY
jon.turney@dronecode.org.uk
Tue Nov 9 13:30:00 GMT 2010
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
More information about the Cygwin-apps
mailing list