![]() |
Set a tab theme to a CXTTabCtrl |
Post Reply
|
| Author | |
yoavo
Senior Member
Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Topic: Set a tab theme to a CXTTabCtrlPosted: 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.
|
|
![]() |
|
yoavo
Senior Member
Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
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).
|
|
![]() |
|
yoavo
Senior Member
Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 July 2006 at 7:38am |
|
Sorry, I have'nt noticed "SetTheme" method...
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |