[setup PATCH] Add icon to title bar

Gary R. Van Sickle g.r.vansickle@worldnet.att.net
Sat Aug 2 10:30:00 GMT 2003


> So this puts a small icon in the top left - like most programs have?

Does it ever!  Gets it into the button thing in the taskbar too when you
minimize it; that was spotty in a similar way to the scrolly-wheel, some
machines it was there, some it wasn't.

> Cool.
>

See what you've been missing?  Have you even looked at my not-entirely-uncool
page dedicated to Cygwin setup?  There's an old friend there waiting to greet
you ;-)!
http://home.att.net/~g.r.vansickle/cygwin/setup/

> Approved,

Thanks again Max.

--
Gary R. Van Sickle
Brewer.  Patriot.

> 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.
> ---
>



More information about the Cygwin-apps mailing list