This is the mail archive of the cygwin-apps@cygwin.com 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]

[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;


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