This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
[setup PATCH] Add icon to title bar
- From: "Max Bowsher" <maxb at ukf dot net>
- To: <cygwin-apps at cygwin dot com>
- Date: Fri, 1 Aug 2003 15:59:57 +0100
- Subject: [setup PATCH] Add icon to title bar
+2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
+
+ * propsheet.cc: Include "resource.h".
+ (PropSheet::Create): Add the Cygwin icon in the left of the title bar.
Index: propsheet.cc
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/propsheet.cc,v
retrieving revision 2.4
diff -u -p -r2.4 propsheet.cc
--- propsheet.cc 1 May 2002 11:13:16 -0000 2.4
+++ propsheet.cc 1 Aug 2003 14:58:05 -0000
@@ -20,6 +20,7 @@
#include "propsheet.h"
#include "proppage.h"
+#include "resource.h"
//#include <shlwapi.h>
// ...but since there is no shlwapi.h in mingw yet:
@@ -172,8 +173,8 @@ PropSheet::Create (const Window * Parent
PageHandles = CreatePages ();
p.dwSize = GetPROPSHEETHEADERSize ();
- p.dwFlags =
- PSH_NOAPPLYNOW | PSH_WIZARD | PSH_USECALLBACK /*| PSH_MODELESS */ ;
+ p.dwFlags = PSH_NOAPPLYNOW | PSH_WIZARD | PSH_USECALLBACK
+ /*| PSH_MODELESS */ | PSH_USEICONID;
if (Parent != NULL)
{
p.hwndParent = Parent->GetHWND ();
@@ -184,6 +185,7 @@ PropSheet::Create (const Window * Parent
}
p.hInstance = GetInstance ();
p.nPages = NumPropPages;
+ p.pszIcon = MAKEINTRESOURCE(IDI_CYGWIN);
p.nStartPage = 0;
p.phpage = PageHandles;
p.pfnCallback = PropSheetProc;