Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to add a toolbar on the Pane?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add a toolbar on the Pane?

 Post Reply Post Reply
Author
Message
Ooops View Drop Down
Newbie
Newbie


Joined: 18 November 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ooops Quote  Post ReplyReply Direct Link To This Post Topic: How to add a toolbar on the Pane?
    Posted: 18 November 2004 at 6:36am
Please help me!
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2004 at 12:11pm


There isnt really any good way if you want it customizable and such. You definately can't drag a toolbar from your main MDI parent and dock the toolbar inside a docking pane.  What I had to do was create my docking pane as a CXTPFrameWnd, and create my docking pane's view in the OnCreate of that CXTPFrameWnd so that I could attach my pane with the Attach() function, not AttachView().
Then in my CView's OnInitialUpdate, I had to copy the toolbar I wanted from the main window since I am using the designer bars and don't want to load two copies of the same bars, and dont want two different designers because then IDs would overlap.
Back to Top
Ooops View Drop Down
Newbie
Newbie


Joined: 18 November 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ooops Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2004 at 6:56pm

Thanks, Ark42!

I am recoding the old project which is based on Xtreme 2.0. And now I am using the Xtreme Toolkit Pro 8.7, they are totally different. I am be confused for XTP 8.7, it looks complicated than before.

So, would you please give me the code fragment about what you mentioned.

Thank you vey much!

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.047 seconds.