Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Subclassing tabs and groups
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Subclassing tabs and groups

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Subclassing tabs and groups
    Posted: 25 August 2012 at 11:17am
I really need to subclass the CXTPRibbonTab and CXTPRibbonGroup classes and have the ribbon bar create my tab class and the tab class can create my group class. But I am having to copy a lot of code simply because unlike the ribbon bar, CJ doesn't let me specify the class for a tab and/or group.

And when copying code, all the "protected" members are a big road block that causes me to have to pull in more and more code and classes.

All this because of hard coded calls to the new operator when a tab or groups is created in non virtual methods.

Has anyone else sub classed the tab and/or groups? If so, what approach did you take?
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.