![]() |
How to set my runtime class to the custom toolbar? |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: How to set my runtime class to the custom toolbar?Posted: 24 October 2007 at 8:55am |
|
Hi,
I have a class which is derived from CXTPToolBar. I want to set that class as the runtime class for the custom toolbar which has been created from customize dialog(via New Button). Please help with code.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 October 2007 at 3:17pm |
|
Hi,
call pCommandBars->SetToolBarClass(RUNTIME_CLASS(CMyToolBar));
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 October 2007 at 1:39am |
|
Hi, How to override the Customize Dialog new button menthod in my class which is derived from CXTPToolBar for setting the my class as the runtime class for Custom Toolbar. |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 October 2007 at 2:26am |
|
Hi, Please ignore my previous post It works fine. Thanks. |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 October 2007 at 3:49am |
|
Hi,
Is there is any method to find the toolbar is custom toolbar or regular?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 October 2007 at 4:23am |
|
Hi,
its IsBuiltIn method.
|
|
|
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 |