Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Disable a tab item in CXTPTabCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disable a tab item in CXTPTabCtrl

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


Joined: 29 February 2004
Location: Israel
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote yoavo Quote  Post ReplyReply Direct Link To This Post Topic: Disable a tab item in CXTPTabCtrl
    Posted: 03 October 2011 at 9:09am
Hi,
I need to disable a tab item (draw it disabled) of CXTPTabCtrl. Previously, on version 13.1, I did it by creating a custom theme (derived from CXTPTabBaseTheme) and override DrawTabText method. The connection between the control and the custom theme was made by "SetTheme" method (which recieved a CXTThemeManagerStyle*  , a base class of CXTPTabBaseTheme).
Now, I have upgraded to version 15.1.3, and I can not do what I did before. The SetTheme method (of the tab control) does not have a signiture that recieve a CXTPTabBaseTheme* (or its base class).
 
My question is how can I set a custome theme to the tab control (handle the DrawTabText method) in version 15.1.3 ? (or is there a different way to disable a tab item).
 
thanks,
Yoav.
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.142 seconds.