|  | 
| How do I create pane using full Doc+View? | 
| Post Reply   | 
| Author | |
| MichaelN   Senior Member   Joined: 19 September 2006 Status: Offline Points: 112 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| grahamf   Groupie     Joined: 29 October 2009 Location: United States Status: Offline Points: 13 |  Post Options  Thanks(0)  Quote  Reply  Posted: 03 October 2011 at 3:09pm | 
| 
   Hey there, You will want to checkout: Samples\ToolkitPro\MDITabWindow Cheers | |
|  | |
| MichaelN   Senior Member   Joined: 19 September 2006 Status: Offline Points: 112 |  Post Options  Thanks(0)  Quote  Reply  Posted: 03 October 2011 at 3:36pm | 
| 
   Belay that request. I was making a stupid mistake not exactly following the pane sample.
 Michael | |
|  | |
| 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 |