Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Theme colors
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Theme colors

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: Theme colors
    Posted: 11 October 2005 at 9:19am

We have a custom dialogbar control has the ability to use the background gradient fill function of tookit Pro.  In the OnEraseBkgnd() function we call:

XTPPaintManager()->GradientFill(pDC,rc,m_clrDark,m_clrLig ht,TRUE);

where m_clrDark and m_clrLight are set according to the theme selected.  Is it possible to use the XTPPaintManager()->GetXtremeColor(x) to obtain to correct values for m_clrDark and m_clrLight for all themes, including those for the three Luna themes?  If so, what are the correct index's for the GetXtremeColor function.  Currently we have to hardcode the RGB values to obtain the correct Luna values.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2005 at 11:37pm

Hello, try

XTPPaintManager()->GradientFill(pDC,rc,XTPColorManager()- >grcDockBar,TRUE);

or

XTPPaintManager()->GradientFill(pDC,rc,XTPColorManager()- >grcToolBar,TRUE);

 

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.