This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH 4/5] Set icon used by alt-tab task switcher for setup
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 9 Nov 2010 13:29:46 +0000
- Subject: [PATCH 4/5] Set icon used by alt-tab task switcher for setup
- References: <1289309387-5232-1-git-send-email-jon.turney@dronecode.org.uk>
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