Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - can I add a CXTPCommand bar on my CView object
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

can I add a CXTPCommand bar on my CView object

 Post Reply Post Reply
Author
Message
rienzi View Drop Down
Groupie
Groupie


Joined: 20 August 2009
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote rienzi Quote  Post ReplyReply Direct Link To This Post Topic: can I add a CXTPCommand bar on my CView object
    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
Back to Top
rienzi View Drop Down
Groupie
Groupie


Joined: 20 August 2009
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote rienzi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
tommyvee View Drop Down
Groupie
Groupie


Joined: 21 August 2007
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote tommyvee Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
rienzi View Drop Down
Groupie
Groupie


Joined: 20 August 2009
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote rienzi Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2010 at 3:23am
thx, my upper floor
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.