<?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 : Attaching C&#070;ormView to dockpane problems!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Attaching C&#070;ormView to dockpane problems!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:00:23 +0000</pubDate>
  <lastBuildDate>Fri, 17 Sep 2004 21:53:46 +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=1169</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[Attaching C&#070;ormView to dockpane problems! : Aha,I found why it didn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1169&amp;PID=3167&amp;title=attaching-cformview-to-dockpane-problems#3167</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=711">xred</a><br /><strong>Subject:</strong> 1169<br /><strong>Posted:</strong> 17 September 2004 at 9:53pm<br /><br /><P>Aha,I found why it didn't work!</P><P>The reason was that I didn't set the dialog's style to "Child"!</P><P>leolea,thank you all the same!<IMG style="WIDTH: 34px; HEIGHT: 39px" height=39 src="http://forum.codejock.com/smileys/smiley17.gif" width=17 border="0"></P>]]>
   </description>
   <pubDate>Fri, 17 Sep 2004 21:53:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1169&amp;PID=3167&amp;title=attaching-cformview-to-dockpane-problems#3167</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching C&#070;ormView to dockpane problems! :  try the simple way:  case...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1169&amp;PID=3121&amp;title=attaching-cformview-to-dockpane-problems#3121</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=733">leolea</a><br /><strong>Subject:</strong> 1169<br /><strong>Posted:</strong> 15 September 2004 at 5:12am<br /><br />try the simple way:<br><br>&nbsp;case 2:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; pPane.AttachView(<font color="#ff0000">this,RUNTIME_CLASS(CMenuForm)</font>,0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp;&nbsp; }<br><br><br><span style="font-size:10px"><br /><br />Edited by leolea</span>]]>
   </description>
   <pubDate>Wed, 15 Sep 2004 05:12:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1169&amp;PID=3121&amp;title=attaching-cformview-to-dockpane-problems#3121</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching C&#070;ormView to dockpane problems! : Anybody do me a favor? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1169&amp;PID=3116&amp;title=attaching-cformview-to-dockpane-problems#3116</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=711">xred</a><br /><strong>Subject:</strong> 1169<br /><strong>Posted:</strong> 14 September 2004 at 5:41am<br /><br /><P>Anybody do me a favor?<IMG style="WIDTH: 85px; HEIGHT: 76px" height=102 src="http://forum.codejock.com/smileys/smiley19.gif" width=17 border="0"></P>]]>
   </description>
   <pubDate>Tue, 14 Sep 2004 05:41:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1169&amp;PID=3116&amp;title=attaching-cformview-to-dockpane-problems#3116</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching C&#070;ormView to dockpane problems! : I want to attach CFormView to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1169&amp;PID=3099&amp;title=attaching-cformview-to-dockpane-problems#3099</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=711">xred</a><br /><strong>Subject:</strong> 1169<br /><strong>Posted:</strong> 13 September 2004 at 3:41am<br /><br /><P><FONT color=#0000ff>I want to attach CFormView to a dockpane,the below are the codes:</FONT></P><P>//////////////////////////////////////////////////////////// //////////////////////////////////////// </P><P>LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)<BR>{<BR>&nbsp;if (wParam == XTP_DPN_SHOWWINDOW)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;// get a pointer to the docking pane being shown.<BR>&nbsp;&nbsp;&nbsp;CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;<BR>&nbsp;&nbsp;&nbsp;if (!pPane-&gt;IsValid())<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;switch( pPane-&gt;GetID() )<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 1:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (m_wnd.GetSafeHwnd() == 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; m_wnd.Create(WS_CHILD|ES_AUTOVSCROLL|ES_MULTILINE, CRect(0, 0, 0, 0), this,  0);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&am p;am p;nb sp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pPane-&gt;Attach(&amp;m_wnd);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 2:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ff0000>CFrameWnd* pFrame = new CFrameWnd;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CCreateContext context;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.m_pNewViewClass = RUNTIME_CLASS(CSetLineView);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.m_pCurrentDoc = GetActiveView()-&gt;GetDocument();</FONT></P><P><FONT color=#ff0000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pFrame-&gt;ModifyStyleEx (WS_EX_CLIENTEDGE, 0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pFrame-&gt;SendMessageTo Descendants(WM_INITIALUPDATE, 0, 0, TRUE, TRUE);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pPane-&gt;Attach(pFrame) ;&nbsp;<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;return TRUE; // handled<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;return FALSE;<BR>}</P><P>//////////////////////////////////////////////////////////// //////////////////////////////////////// /////</P><P><FONT color=#0000ff>CSetLineView inherits from CFormView,however it generates an assert!<IMG src="http://forum.codejock.com/smileys/smiley11.gif" border="0"><IMG src="http://forum.codejock.com/smileys/smiley19.gif" border="0"></FONT></P><P><IMG src="uploads/xred/2004-09-13_033955_error.gif" border="0"></P><span style="font-size:10px"><br /><br />Edited by xred</span>]]>
   </description>
   <pubDate>Mon, 13 Sep 2004 03:41:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1169&amp;PID=3099&amp;title=attaching-cformview-to-dockpane-problems#3099</guid>
  </item> 
 </channel>
</rss>