Print Page | Close Window

Subclassing CXTPToolBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10198
Printed Date: 01 October 2024 at 8:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Subclassing CXTPToolBar
Posted By: dedvalson
Subject: Subclassing CXTPToolBar
Date 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.




Replies:
Posted By: Oleg
Date 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



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