Print Page | Close Window

dynamic docking pane creation problem

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=10311
Printed Date: 23 November 2024 at 7:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: dynamic docking pane creation problem
Posted By: freeforvtk
Subject: dynamic docking pane creation problem
Date Posted: 20 April 2008 at 9:55pm
Hi, all
 
Following the codes of the sample application "DynamicPanes", I've created a similar "MDI" application.
 
I just create a single pane with a formview in it:
 
CreatePane(RUNTIME_CLASS(CMyFormView), _T("Form View"), xtpPaneDockLeft);
 
When executing the following line:
pFrame->ModifyStyleEx(WS_EX_CLIENTEDGE, 0);
 
An error jumps out,says:
 
 
 
I think the defination of pFrame is wrong. But, how to define the pFrame in a MDI application?
 
===============================
CFrameWnd* pFrame = new CFrameWnd;
 CCreateContext context;
 context.m_pNewViewClass = pNewViewClass;
 context.m_pCurrentDoc = GetActiveView()->GetDocument();
 pFrame->Create(NULL, NULL, WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(0, 0, 0, 0), this, NULL, 0, &context);
 pFrame->ModifyStyleEx(WS_EX_CLIENTEDGE, 0);
===============================
Thanks
 
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