Print Page | Close Window

Problem with CXTPToolBar

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=7030
Printed Date: 12 November 2025 at 5:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with CXTPToolBar
Posted By: Ashok
Subject: Problem with CXTPToolBar
Date Posted: 02 May 2007 at 11:08am
Hai,
  I am working on the evaluation pack of XtremeToolKit Pro. I have a class which is derived from CToolBar, now I am trying to derive from CXTPToolBar which gives plenty of error messages like SetBarStyle, GetBarStyle, LoadBitmap, GetDockingFrame, GetButtonStyle, SetButtonInfo etc., are undefined. What's the solution? I don't want to add the toolbar.And one more thing is it possible to get the handle to the menu from the commandbar?



Replies:
Posted By: Oleg
Date Posted: 02 May 2007 at 12:35pm
Hello,
 
CXTPToolbar is not derived from CToolBar or СToolbarCtrl - we create menu popups/toolbars from simple CWnd. So you need replace some methods you use for standard toolbars. for example insted of GetButtonStyle - pToolBar->GetControl(i)->GetStyle() etc.


-------------
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