Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - Changing the text color within a tab.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedChanging the text color within a tab.

 Post Reply Post Reply
Author
Message
kentse View Drop Down
Newbie
Newbie


Joined: 29 October 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote kentse Quote  Post ReplyReply Direct Link To This Post Topic: Changing the text color within a tab.
    Posted: 13 November 2008 at 2:50pm
Can someone please tell me how to change the color of the text within the tab below?
 
Thanks!
 
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: 14 November 2008 at 1:47am
Hi,
Is it Office2007 theme ?
 
try GetPaintManager()->GetColorSet()->m_clrNormalText = ...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
kentse View Drop Down
Newbie
Newbie


Joined: 29 October 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote kentse Quote  Post ReplyReply Direct Link To This Post Posted: 14 November 2008 at 4:04pm
Thanks for the reply Oleg.  Yes, this is Office2007 theme, but this tab is not part of the ribbon.  It is part of a CXTPTabClientWnd.  Do you know how I would go about changing the text color there?
 
I am able to set the icon of the tab with this, but can't figure out how to set the text color of the tab:
 
GetParent()->SetIcon(LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_OPEN_DOCUMENT)), TRUE);
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.141 seconds.