Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - dynamic docking pane creation problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

dynamic docking pane creation problem

 Post Reply Post Reply
Author
Message
freeforvtk View Drop Down
Newbie
Newbie


Joined: 01 April 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote freeforvtk Quote  Post ReplyReply Direct Link To This Post Topic: dynamic docking pane creation problem
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.