<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : dynamic docking pane creation problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : dynamic docking pane creation problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 18:02:10 +0000</pubDate>
  <lastBuildDate>Sun, 20 Apr 2008 21:55:50 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=10311</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[dynamic docking pane creation problem : Hi, all   Following the codes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10311&amp;PID=33987&amp;title=dynamic-docking-pane-creation-problem#33987</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3967">freeforvtk</a><br /><strong>Subject:</strong> 10311<br /><strong>Posted:</strong> 20 April 2008 at 9:55pm<br /><br />Hi, all <DIV>&nbsp;</DIV><DIV>Following the codes of the sample application "DynamicPanes", I've created a similar "MDI" application.</DIV><DIV>&nbsp;</DIV><DIV>I just create a single pane with a formview in it:</DIV><DIV>&nbsp;</DIV><DIV>CreatePane(RUNTIME_CLASS(CMyFormView), _T("Form View"), xtpPaneDockLeft);</DIV><DIV>&nbsp;</DIV><DIV>When executing the following line:</DIV><DIV>pFrame-&gt;ModifyStyleEx(WS_EX_CLIENTEDGE, 0);</DIV><DIV>&nbsp;</DIV><DIV>An error jumps out,says:</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20080420_215228_docking_pane_er.JPG" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I think the defination of pFrame is wrong. But, how to define the pFrame in a MDI application?</DIV><DIV>&nbsp;</DIV><DIV>===============================</DIV><DIV>CFrameWnd* pFrame = new CFrameWnd;</DIV><DIV>&nbsp;CCreateContext context;<BR>&nbsp;context.m_pNewViewClass = pNewViewClass;<BR>&nbsp;context.m_pCurrentDoc = GetActiveView()-&gt;GetDocument();</DIV><DIV>&nbsp;pFrame-&gt;Create(NULL, NULL, WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(0, 0, 0, 0), this, NULL, 0, &amp;context);<BR>&nbsp;pFrame-&gt;ModifyStyleEx(WS_EX_CLIENTEDGE, 0);</DIV><DIV>===============================</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>peace</DIV>]]>
   </description>
   <pubDate>Sun, 20 Apr 2008 21:55:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10311&amp;PID=33987&amp;title=dynamic-docking-pane-creation-problem#33987</guid>
  </item> 
 </channel>
</rss>