Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Colours (Simple Question)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Colours (Simple Question)

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: Colours (Simple Question)
    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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1206
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2008 at 4:58am
Hi Simon;

take a look at Win-API function

HRESULT GetThemeColor(      
    HTHEME hTheme,
    int iPartId,
    int iStateId,
    int iPropId,
    COLORREF *pColor
);

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2008 at 5:08am
Originally posted by mgampi mgampi wrote:

Hi Simon;

take a look at Win-API function

HRESULT GetThemeColor(      
    HTHEME hTheme,
    int iPartId,
    int iStateId,
    int iPropId,
    COLORREF *pColor
);

 
Martin - many thanks :-)
Simon HB9DRV
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.045 seconds.