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]

Re: [setup PATCH] Add icon to title bar


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

Attachment: signature.asc
Description: This is a digitally signed message part


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