Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTabControl Colors...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTabControl Colors...

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabControl Colors...
    Posted: 09 November 2004 at 4:37pm

Anybody have any idea how to control the color that gets painted behind the tabs in a CXTPTabControl?  I can turn it off (which makes it black) using the m_bFillBackground=FALSE attribute, but can't seem to find a place to set the color. 

Any ideas?

Thanks!

- David Little
- Houston, TX

Back to Top
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2004 at 5:03pm

Please ignore me... I found it.  In case anybody wants to try it, use:

GetPaintManager()->GetColorSet()->m_clrHeaderFace.SetC olors(RGB(255,0,0),RGB(0,0,255));

That gradient is ugly (Red into Blue), just replace it with your own colors -- the lighter color goes first.

Regards,

- David

 

 

Back to Top
g_j_a_i_n View Drop Down
Groupie
Groupie
Avatar

Joined: 27 August 2005
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote g_j_a_i_n Quote  Post ReplyReply Direct Link To This Post Posted: 27 August 2005 at 2:21am

Thanks for sharing. Sharing is great. It saved my time.

Regards,
GJ
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.047 seconds.