Print Page | Close Window

How to set my runtime class to the custom toolbar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8515
Printed Date: 14 November 2025 at 1:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set my runtime class to the custom toolbar?
Posted By: Ashok
Subject: How to set my runtime class to the custom toolbar?
Date 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.



Replies:
Posted By: Oleg
Date Posted: 24 October 2007 at 3:17pm
Hi,
 
call pCommandBars->SetToolBarClass(RUNTIME_CLASS(CMyToolBar));


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ashok
Date 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.



Posted By: Ashok
Date Posted: 25 October 2007 at 2:26am

Hi, Please ignore my previous post

It works fine. Thanks.



Posted By: Ashok
Date Posted: 25 October 2007 at 3:49am
Hi,
  Is there is any method to find the toolbar is custom toolbar or regular?


Posted By: Oleg
Date Posted: 25 October 2007 at 4:23am
Hi,
 
its IsBuiltIn method.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net