![]() |
Colours (Simple Question) |
Post Reply ![]() |
Author | |
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() Posted: 23 July 2008 at 3:45am |
Hi Oleg,
When a CXTButton is disabled with EnableWindow(FALSE) how do you compute the colour you draw on the button face? Can I get this colour somehow?
This is not important - I would like to get this colour so that I can draw my own controls using the same colour when they are disabled.
My controls are at the top and bottom of the attached jpeg.
![]() |
|
Simon HB9DRV
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1206 |
![]() ![]() ![]() ![]() ![]() |
Hi Simon;
take a look at Win-API function HRESULT GetThemeColor( |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
Martin - many thanks :-)
|
|
Simon HB9DRV
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |