[setup PATCH] Add icon to title bar
Robert Collins
rbcollins@cygwin.com
Fri Aug 1 23:13:00 GMT 2003
So this puts a small icon in the top left - like most programs have?
Cool.
Approved,
Cheers,
Rob
On Sat, 2003-08-02 at 00:59, Max Bowsher wrote:
> +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;
--
GPG key available at: http://members.aardvark.net.au/lifeless/keys.txt.
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20030801/bbb26343/attachment.sig>
More information about the Cygwin-apps
mailing list