Default System Colors

William Poetra Yoga H williampoetra at yahoo.com
Thu Nov 18 00:04:56 CST 2004


--- Mike Hearn <mike at navi.cx> wrote:

> No, theming is a breaking change so Windows only applies it to apps that
> opt-in (very smart move IMHO even if the user experience does suffer
> somewhat).
> 

> 
> Microsoft appear to have done a copy/paste of code from user32 into a new
> comctl DLL version, unfortunately we can't do the same so we need to
> figure out how to implement this.
> 
> thanks -mike
> 

--- Ivan Leo Puoti <puoti at inwind.it> wrote:

> I don't see how it could, if you write a hello world app that just creates a
> window it won't know anything about theming, but xp will still theme it.
> 
> Ivan.
> 

--- Kevin Koltzau <kevin at plop.org> wrote:

> Under Windows XP, the only way for an application to be themed is if it has
> a manifest in its resources requesting comctl 6.0. If an app was written
> for Win95 it will always draw with the old style as it has no manifest.
> However, the color scheme of the theme will still be applied to all
> applications
> 
> It is possible to add a a manifest for an existing application without
> modifying
> the executable by placing a <app>.exe.manifest file in the same directory
> as the application executables, but your milage may vary on this approach.
> 
> A theme-aware application can call the IsThemeActive and IsAppThemed to
> determine if a theme is active, and if the current application is themed.
> XP has a user-configurable blacklist to prevent applications from being
> themed,
> even if they are theme-aware..hence the two API calls.
> 

--- Kevin Koltzau <kevin at plop.org> wrote:

> On Tuesday 16 November 2004 02:20 pm, Mike Hearn wrote:
> > No, theming is a breaking change so Windows only applies it to apps that
> > opt-in (very smart move IMHO even if the user experience does suffer
> > somewhat).
> 
> On that note, I have been toying with possible ways to start theming common
> controls.
> My personal preference is to use a kind of user-defined blacklist ala
> WindowBlinds, and
> just theme everything not on the list
> 

This is getting a bit complicated. So right now for the colors, we can use
uxtheme, right? We should just use GetThemeSysColor(), not GetSysColor(). Btw,
why does MS have GetThemeColor()? From what I can see in the MSDN, the only
difference is its calling convention.



		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 




More information about the wine-devel mailing list