Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Disabled color Collapse All
Subject Author Date
Offer Har Jan 2, 2007 - 9:40 AM

Dear Support.
I have my owner-drawn control. In some cases i want it to be disabled. I used to get the disabled clor from the OS using GetSysColor.
But, when my application is themed, this color does not match the scheme anymore.

How can i get the RGB you use for disabled controls?

Thanks,
Ron.

Offer Har Jan 3, 2007 - 2:53 PM

Thanks.

Technical Support Jan 3, 2007 - 12:49 PM

You can get colors using the g_PaintManager->GetColor() method rather than ::GetSysColor():

g_PaintManager->GetColor( COLOR_3DSHADOW )