Print Page | Close Window

How do I create pane using full Doc+View?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=19008
Printed Date: 05 May 2024 at 12:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do I create pane using full Doc+View?
Posted By: MichaelN
Subject: How do I create pane using full Doc+View?
Date 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



Replies:
Posted By: grahamf
Date Posted: 03 October 2011 at 3:09pm
Hey there,

You will want to checkout:

Samples\ToolkitPro\MDITabWindow

Cheers



Posted By: MichaelN
Date Posted: 03 October 2011 at 3:36pm
Belay that request. I was making a stupid mistake not exactly following the pane sample.
 
Michael



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net