Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Custom themed CXTPTabView no longer works
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom themed CXTPTabView no longer works

 Post Reply Post Reply
Author
Message
mojonez View Drop Down
Groupie
Groupie


Joined: 16 September 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mojonez Quote  Post ReplyReply Direct Link To This Post Topic: Custom themed CXTPTabView no longer works
    Posted: 31 January 2012 at 5:46pm

We have some 12.x code that subclasses the Tab control theme and works well:

 

CXTTabView * mAppSettingsPane;

  ...
  ...
 
CMJTabBaseTheme * pTabTheme2 = new CMJTabBaseTheme();
mAppSettingsPane->SetTheme(xtThemeOfficeXP);
mAppSettingsPane->SetTheme(pTabTheme2);
 
where:
 
class _XTP_EXT_CLASS CMJTabBaseTheme : public CXTPTabBaseThemeOfficeXP

After upgrading to 15.2, the code no longer compiles.  Looking at the source it appears CXTTabView has been renamed to CXTPTabView, and the SetTheme() method no longer can take a pointer to a custom theme.  I can't seem to find any example of how to achieve the same thing in 15.x. 

Does anyone know how to fix this?
 
thx!
 

 

Back to Top
mojonez View Drop Down
Groupie
Groupie


Joined: 16 September 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mojonez Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2012 at 9:04pm
Just to clsoe the loop, we've worked around this issue by subclassing the CXTPTabView and adding our own theme handler:

class CMJTabView : public CXTPTabView
{
public:
void SetCustomTheme(CXTPTabBaseTheme* pTheme) { m_pTheme = pTheme; RefreshMetrics(); }
};


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.