dynamic docking pane creation problem |
Post Reply |
Author | |
freeforvtk
Newbie Joined: 01 April 2008 Status: Offline Points: 6 |
Post Options
Thanks(0)
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
|
|
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 |