Print Page | Close Window

can I add a CXTPCommand bar on my CView object

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=17194
Printed Date: 03 October 2024 at 12:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: can I add a CXTPCommand bar on my CView object
Posted By: rienzi
Subject: can I add a CXTPCommand bar on my CView object
Date Posted: 03 September 2010 at 2:20am
can I add a CXTPCommand bar on my CView object please?
can I add one on it? and how? tell me please



Replies:
Posted By: rienzi
Date Posted: 03 September 2010 at 4:22am
or just a CXTPToolBar please? I added one to my CView class object but it can not be displayed


Posted By: jimmy
Date Posted: 03 September 2010 at 4:46am
Hi,

Look into Advanced sample.
in HeroesView.cpp & .h you can see it.
class CHeroesView : public CXTPCommandBarsSiteBase<CWnd>
InitCommandaBArs(), .....

  Jimmy


Posted By: tommyvee
Date Posted: 05 September 2010 at 5:09pm
I am also interested in adding some sort of toolbar or a docking pane to a CView window. I want to display a gridcontrol with color boxes and labels on the toolbar or docaking pane inside the client area of the CView window. The gridcontrol does not have any active function, so using a CXTPColorPicker does not seem right.

Is it possible to just use CToolBar? I am not sure because the comments in the sample projects all say
"    // Create Status bar.
     // Important: All control bars including the Status Bar
     // must be created before CommandBars...."

And since CToolBar is a descendent of CControlBar I don't know if using a simple CToolBar will work inside CView since my views are created and destroyed various times after the CMainFrame is created. When I had a toolbar that was created after the CommandBars in CMainFrame it never displayed until I moved the creation before the CommandBars.


Posted By: rienzi
Date Posted: 08 September 2010 at 3:23am
thx, my upper floor



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