Subclassing CXTPToolBar |
Post Reply |
Author | |
dedvalson
Groupie Joined: 10 April 2008 Status: Offline Points: 21 |
Post Options
Thanks(0)
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Use 3rd parameter of Add method
LPCTSTR lpszName, XTPBarPosition barPosition, CRuntimeClass* pToolbarClass);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |