Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How do I create pane using full Doc+View?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I create pane using full Doc+View?

 Post Reply Post Reply
Author
Message
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Topic: How do I create pane using full Doc+View?
    Posted: 03 October 2011 at 1:45pm
I want to create a pane that contains a view with its own document and frame classes. In other words, I want to put an MDI doc template in a pane, not the mainframe.
 
I cannot find any samples showing how to do this. I already know how to create panes from dialog templates and CView derives classes that do not have a document. This is different.
 
I know that I create a naked CXTPDockingPane with icon and title inside the parent frame's OnCreate (this is the parent frame that will contain the pane). The question is what code to implement for the XTP_DPN_SHOWWINDOW notification to actually create the doc/view object. From the samples, I suspect this uses CCreateContext. I have tried many variations using RUNTIME_CLASS and nothing seems to work.
 
Is there sample code somewhere for this?
 
Michael
Back to Top
grahamf View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2009
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote grahamf Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2011 at 3:09pm
Hey there,

You will want to checkout:

Samples\ToolkitPro\MDITabWindow

Cheers

Back to Top
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2011 at 3:36pm
Belay that request. I was making a stupid mistake not exactly following the pane sample.
 
Michael
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.