Print Page | Close Window

Changing the text color within a tab.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=12676
Printed Date: 16 May 2024 at 10:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing the text color within a tab.
Posted By: kentse
Subject: Changing the text color within a tab.
Date 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!
 



Replies:
Posted By: Oleg
Date Posted: 14 November 2008 at 1:47am
Hi,
Is it Office2007 theme ?
 
try GetPaintManager()->GetColorSet()->m_clrNormalText = ...


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: kentse
Date 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);



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net