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

Subclassing CXTPToolBar

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


Joined: 10 April 2008
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote dedvalson Quote  Post ReplyReply Direct Link To This Post Topic: Subclassing CXTPToolBar
    Posted: 11 April 2008 at 1:21pm

I may be missing something obvious here, but I can't find a way to do this.

I have an existing MFC app that I am moving onto XTP. It has a class derived from CToolbar. I have modified that class so that now it is derived from CXTPToolBar instead.

Now how do I add this derived class to the CXTPCommandBars.

CXTPCommandBars->SetToolbarClass changes all toolbars, I only want to change one.

Thanks.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2008 at 2:44pm
Hi,
 
Use 3rd parameter of Add method
 
LPCTSTR lpszName, XTPBarPosition barPosition, CRuntimeClass* pToolbarClass);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.125 seconds.