<?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 : AttachView and connect to document</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : AttachView and connect to document]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 16:30:14 +0000</pubDate>
  <lastBuildDate>Fri, 27 Feb 2009 03:01:29 +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=13510</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[AttachView and connect to document : Hi, You can create CView in some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13510&amp;PID=45954&amp;title=attachview-and-connect-to-document#45954</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13510<br /><strong>Posted:</strong> 27 February 2009 at 3:01am<br /><br /><P>Hi,</P><DIV>You can create CView in some OnCreateClient method and then attach it in OnDockingPaneNotify.&nbsp;&nbsp;&nbsp; </DIV><DIV>But guess its not right to connect pane to Document.</DIV>]]>
   </description>
   <pubDate>Fri, 27 Feb 2009 03:01:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13510&amp;PID=45954&amp;title=attachview-and-connect-to-document#45954</guid>
  </item> 
  <item>
   <title><![CDATA[AttachView and connect to document : Hello,I use your docking pane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13510&amp;PID=45933&amp;title=attachview-and-connect-to-document#45933</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5004">Frank_E</a><br /><strong>Subject:</strong> 13510<br /><strong>Posted:</strong> 26 February 2009 at 12:17pm<br /><br />Hello,<br><br>I use your docking pane to display a CFormView based view. The View is attached to the pane with pPane-&gt;AttachView(this, RUNTIME_CLASS(CmyViewClass)). So far so good. The View is displayed correctly. But I want this view connected to a document. This view is not in the DocTemplate because it is not the default view. When I follow your example, the view is created and attached dynamically in OnDockingPaneNotify:<br><br>LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp;&nbsp; if (wParam == XTP_DPN_SHOWWINDOW)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!pPane-&gt;IsValid())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch (pPane-&gt;GetID())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case IDR_PANE_myPane:<br>&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; <font color="#00ff00">//CCreateContext does not work here, because at this point there is no document.</font><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <font color="#ff0000">pPane-&gt;AttachView(this, RUNTIME_CLASS(CmyView));</font><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return FALSE;<br>}<br><br>The problem is, that at this point no document exist and I can't pass a pointer to the document and its content to AttachView together with the runtime class of&nbsp; my view. How can I link my dynamically created view to my document?.<br><br>regards,<br>Frank.<br>]]>
   </description>
   <pubDate>Thu, 26 Feb 2009 12:17:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13510&amp;PID=45933&amp;title=attachview-and-connect-to-document#45933</guid>
  </item> 
 </channel>
</rss>