Print Page | Close Window

How to dynamicly create docking pane in MDI

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=10312
Printed Date: 04 May 2024 at 1:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to dynamicly create docking pane in MDI
Posted By: freeforvtk
Subject: How to dynamicly create docking pane in MDI
Date Posted: 21 April 2008 at 2:28am
Hi,expert
 
I want to dynamicly crate a docking pane with formview inside. toolkit its-self has a example application "Dynamic Panes".  But it's a SDI application. I want to do it in a MDI application. 
And the function CreatePane() doesn't work correctly in my MDI application.
 
 I would appreciate that you tell me how to do it?
 
Thank you very much.



Replies:
Posted By: Oleg
Date Posted: 21 April 2008 at 2:47am
Hello,
 
CreatePane works with MDI application. Attach sample and I will point what you do wrong.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Oleg
Date Posted: 21 April 2008 at 2:49am
p.s Check Samples\UserInterface\GUI_VisualStudio  sample - it has Panes in MDI application.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: freeforvtk
Date Posted: 22 April 2008 at 9:23pm
Thanks,Oleg
 
I've solve the problem.
 
=================================================
CMainFrame* pMain = (CMainFrame*)(AfxGetApp()->GetMainWnd());
 CCreateContext context;
 context.m_pNewViewClass = pNewViewClass;
 context.m_pCurrentDoc = pMain->GetActiveDocument();
================================================
 
Thank you any way
 
peace
 
 



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