can I add a CXTPCommand bar on my CView object |
Post Reply |
Author | |
rienzi
Groupie Joined: 20 August 2009 Status: Offline Points: 38 |
Post Options
Thanks(0)
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
|
|
rienzi
Groupie Joined: 20 August 2009 Status: Offline Points: 38 |
Post Options
Thanks(0)
|
or just a CXTPToolBar please? I added one to my CView class object but it can not be displayed
|
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
Hi,
Look into Advanced sample. in HeroesView.cpp & .h you can see it. class CHeroesView : public CXTPCommandBarsSiteBase<CWnd> InitCommandaBArs(), ..... Jimmy |
|
tommyvee
Groupie Joined: 21 August 2007 Location: United States Status: Offline Points: 11 |
Post Options
Thanks(0)
|
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. |
|
rienzi
Groupie Joined: 20 August 2009 Status: Offline Points: 38 |
Post Options
Thanks(0)
|
thx, my upper floor
|
|
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 |