Print Page | Close Window

Set a tab theme to a CXTTabCtrl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4682
Printed Date: 10 November 2025 at 10:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Set a tab theme to a CXTTabCtrl
Posted By: yoavo
Subject: Set a tab theme to a CXTTabCtrl
Date Posted: 30 July 2006 at 8:35am
Hi,
I want to draw the text of a tab item differently. I looked at the code of CXTTabCtrl and CXTTabBase, and it seems that the right way to do it is by setting a "CXTTabBaseTheme" derrived class object to my tab control class(CMyTabCtrl which derive from CXTTabCtrl).
How can I set a "CXTTabBaseTheme" derrived class object to my tab control ? or is there another way to do what I want ?
 
Yoav.



Replies:
Posted By: yoavo
Date Posted: 30 July 2006 at 8:46am

I forgot to mention 2 things:

1. My tab control is owner-drawn (I modify its style to TCS_OWNERDRAWFIXED).
2. My code worked in Xtreme ver9.6 and stoped working when I made upgrade to ver9.8 (I caught the event CMyTab::DrawItem which in ver9.8 is not reachable).


Posted By: yoavo
Date Posted: 31 July 2006 at 7:38am
Sorry, I have'nt noticed "SetTheme" method...



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