1. Win32Lib: Common Controls revisited
- Posted by Brian Broker <bkb at cnw.com> Aug 18, 2004
- 549 views
I've updated my web page on this issue: http://www.cnw.com/~bkb/Eu/combo.html If it doesn't break anything else, can we get this fix? I'd really like to have my programs look right with version 6 common controls. I don't know if there are any other potentially unnecessary handlers in there but this is at least a start. Thanks, -- Brian
2. Re: Win32Lib: Common Controls revisited
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 19, 2004
- 488 views
Brian Broker wrote: > > I've updated my web page on this issue: > <a > href="http://www.cnw.com/~bkb/Eu/combo.html">http://www.cnw.com/~bkb/Eu/combo.html</a> > > If it doesn't break anything else, can we get this fix? I'd really like > to have my programs look right with version 6 common controls. The problem is triggered by the use of XP manifests. The way the Win32lib works is that it sets the background color to the values built-in to the library, whenever Windows asks for the user-defined background color. That is to say, Win32lib gives all controls a user-defined color. By default this is the colors set by the user in the current Display Appearance Scheme. But this only works when there is no manifest in place, or the manifest is using the 'classic' scheme. If an alterate manifest is active, Win32lib's operation is always replacing whatever the manifest does with the built-in colors (though not in ways you'd expect). To 'fix' this, I have to change the internal usage of a number of color attributes so that the library only sets the background color for those controls that have explicitly been asked by the user app to use a specific color. This might also affect text colors too. So more research will need to be done. The upshot is that it will take me a few days to get it right! > I don't know if there are any other potentially unnecessary handlers in > there but this is at least a start. Well, 'unnecessary' might be a bit harsh. I need to act upon these Windows messages for apps that explictly set the background color of a control to something specific - thus overriding any active manifest. -- Derek Parnell Melbourne, Australia