Modern Windows GUI visual styles

2009-09-09 Thread Valery
Recently I spent a few hours to find a way to enable a new styles of Windows XP controls from the code (without manual created external manifest files, resource files, ...). The only solution I found in DFL library and it looks quite complicated. Maybe should create that function at the level o

Re: Modern Windows GUI visual styles

2009-09-09 Thread Jeremie Pelletier
Valery Wrote: > Recently I spent a few hours to find a way to enable a new styles of Windows > XP controls from the code (without manual created external manifest files, > resource files, ...). The only solution I found in DFL library and it looks > quite complicated. > > Maybe should create t

Re: Modern Windows GUI visual styles

2009-09-09 Thread Robert Jacques
On Wed, 09 Sep 2009 05:19:22 -0400, Valery wrote: Recently I spent a few hours to find a way to enable a new styles of Windows XP controls from the code (without manual created external manifest files, resource files, ...). The only solution I found in DFL library and it looks quite compli

Re: Modern Windows GUI visual styles

2009-09-09 Thread Valery
Jeremie Pelletier Wrote: > As far as I know, the only way to get the newer common controls library is to > use an assembly manifest, be it external or compiled as a resource. I haven't > looked into DFL but I'm pretty sure it simply generates the proper manifest > resource and link it in the ex

Re: Modern Windows GUI visual styles

2009-09-09 Thread Valery
Or at least describe the process of change styles through the manifest files in the documentation and the section D for Win32 on site.

Re: Modern Windows GUI visual styles

2009-09-09 Thread Jacob Carlborg
On 9/9/09 11:19, Valery wrote: Recently I spent a few hours to find a way to enable a new styles of Windows XP controls from the code (without manual created external manifest files, resource files, ...). The only solution I found in DFL library and it looks quite complicated. Maybe should cr

Re: Modern Windows GUI visual styles

2009-09-09 Thread Stewart Gordon
Valery wrote: Jeremie Pelletier Wrote: As far as I know, the only way to get the newer common controls library is to use an assembly manifest, be it external or compiled as a resource. I haven't looked into DFL but I'm pretty sure it simply generates the proper manifest resource and link it i

Re: Modern Windows GUI visual styles

2009-09-09 Thread Adam D. Ruppe
On Wed, Sep 09, 2009 at 08:27:56PM +0100, Stewart Gordon wrote: > Indeed, I'd like to know why M$ decided to bundle two versions of the > relevant DLLs and require the programmer to use a manifest in order to > access the modern version. Backward compatibility. Details here: http://blogs.msdn.c

Re: Modern Windows GUI visual styles

2009-09-09 Thread Roald Ribe
Stewart Gordon wrote: Indeed, I drove myself mad trying to find out how to make it work, and eventually discovered keeping a .manifest file alongside the .exe. We need more resources (NPI) teaching how to do it the tidier way. In your .rc file (which more or less all WIN32 GUI apps needs anyw

Re: Modern Windows GUI visual styles

2009-09-09 Thread Eric Suen
Hi, Take a look Windows API: CreateActCtx, ActivateActCtx, DeactivateActCtx and ReleaseActCtx and the struct ACTCTX You still need a manifest file, but that file can generate by program, and you can turn on/off the XP theme. "ACTCTX.lpSource Null-terminated string specifying the path of the

Re: Modern Windows GUI visual styles

2009-09-10 Thread Kagamin
Stewart Gordon Wrote: > Indeed, I'd like to know why M$ decided to bundle two versions of the > relevant DLLs and require the programmer to use a manifest in order to > access the modern version. AFAIK manifest is a solution for the dll hell problem.

Re: Modern Windows GUI visual styles

2009-09-10 Thread Kagamin
Valery Wrote: > Yes, in DFL creates a manifest file and so on, but it's done at runtime by > method enableVisualStyles. > I think that there should be a simpler way to enable new styles independent > of library or native Win32 API you use. > manifest is the simplest way to use styles.

Re: Modern Windows GUI visual styles

2009-09-10 Thread Stewart Gordon
Roald Ribe wrote: Stewart Gordon wrote: Indeed, I drove myself mad trying to find out how to make it work, and eventually discovered keeping a .manifest file alongside the .exe. We need more resources (NPI) teaching how to do it the tidier way. In your .rc file (which more or less all WIN32

Re: Modern Windows GUI visual styles

2009-09-11 Thread Tim M
Valery Wrote: > Recently I spent a few hours to find a way to enable a new styles of Windows > XP controls from the code (without manual created external manifest files, > resource files, ...). The only solution I found in DFL library and it looks > quite complicated. Microsoft says to use App

Re: Modern Windows GUI visual styles

2009-09-11 Thread Daniel Keep
Tim M wrote: > Microsoft says to use Application.EnableVisualStyles > http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx Umm... you do realise that's for .NET, right?

Re: Modern Windows GUI visual styles

2009-09-12 Thread Tim M
Daniel Keep Wrote: > > > Tim M wrote: > > Microsoft says to use Application.EnableVisualStyles > > http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx > > Umm... you do realise that's for .NET, right? Run it through a debugger and you will probably

Re: Modern Windows GUI visual styles

2009-09-13 Thread Christopher Wright
Tim M wrote: Daniel Keep Wrote: Tim M wrote: Microsoft says to use Application.EnableVisualStyles http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx Umm... you do realise that's for .NET, right? Run it through a debugger and you will probably