<?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 : How to access c&#111;ntrol &#111;n Pane1 from Pane2</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : How to access c&#111;ntrol &#111;n Pane1 from Pane2]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:43:28 +0000</pubDate>
  <lastBuildDate>Thu, 08 Jul 2004 19:44:00 +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=921</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[How to access c&#111;ntrol &#111;n Pane1 from Pane2 : And after your &amp;#034;Attach&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2453&amp;title=how-to-access-control-on-pane1-from-pane2#2453</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 921<br /><strong>Posted:</strong> 08 July 2004 at 7:44pm<br /><br />And after your "Attach" or&nbsp;"AttachView" ?&nbsp; If you try to call this before you attach the view, pChildWnd will be NULL.&nbsp; If yes, then please upload a sample project so I can debug the problem, thanks.]]>
   </description>
   <pubDate>Thu, 08 Jul 2004 19:44:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2453&amp;title=how-to-access-control-on-pane1-from-pane2#2453</guid>
  </item> 
  <item>
   <title><![CDATA[How to access c&#111;ntrol &#111;n Pane1 from Pane2 :  The call to ASSERT_VALID (pChildWnd)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2451&amp;title=how-to-access-control-on-pane1-from-pane2#2451</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=131">AdrianM</a><br /><strong>Subject:</strong> 921<br /><strong>Posted:</strong> 08 July 2004 at 1:34pm<br /><br /><P>&nbsp;</P><P>The call to ASSERT_VALID (pChildWnd) is made after the call to create the pane.</P><P>- Adrian</P>]]>
   </description>
   <pubDate>Thu, 08 Jul 2004 13:34:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2451&amp;title=how-to-access-control-on-pane1-from-pane2#2451</guid>
  </item> 
  <item>
   <title><![CDATA[How to access c&#111;ntrol &#111;n Pane1 from Pane2 : Make sure you make the call AFTER...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2448&amp;title=how-to-access-control-on-pane1-from-pane2#2448</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 921<br /><strong>Posted:</strong> 07 July 2004 at 8:05pm<br /><br />Make sure you make the call AFTER you have attached the view to the pane.]]>
   </description>
   <pubDate>Wed, 07 Jul 2004 20:05:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2448&amp;title=how-to-access-control-on-pane1-from-pane2#2448</guid>
  </item> 
  <item>
   <title><![CDATA[How to access c&#111;ntrol &#111;n Pane1 from Pane2 : Hello, This code asserts at:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2447&amp;title=how-to-access-control-on-pane1-from-pane2#2447</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=131">AdrianM</a><br /><strong>Subject:</strong> 921<br /><strong>Posted:</strong> 07 July 2004 at 7:25pm<br /><br /><P>Hello,</P><P>This code asserts at:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASSERT_VALID(pChildWnd);</P><P>I appreciate your help.</P><P>Best wishes,</P><P>- Adrian</P>]]>
   </description>
   <pubDate>Wed, 07 Jul 2004 19:25:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2447&amp;title=how-to-access-control-on-pane1-from-pane2#2447</guid>
  </item> 
  <item>
   <title><![CDATA[How to access c&#111;ntrol &#111;n Pane1 from Pane2 : Is is possible that your CFormView...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2446&amp;title=how-to-access-control-on-pane1-from-pane2#2446</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 921<br /><strong>Posted:</strong> 07 July 2004 at 6:04pm<br /><br /><P>Is is possible that your CFormView is nested in a CFrameWnd?&nbsp; If so that would explain why DYNAMIC_DOWNCAST is returning NULL.&nbsp; Please try this:<BR><BR><table width="99%"><tr><td><pre class="BBcode">CMyFormView1* pFormView = NULL;<BR><BR>CWnd* pChildWnd = <FONT size=2>pPane-&gt;GetChild();<BR>ASSERT_VALID(pChildWnd);<BR><BR>if (pChildWnd)<BR>{<BR>&nbsp;&nbsp;&nbsp; if (pChildWnd-&gt;IsFrameWnd())<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pFormView = DYNAMIC_DOWNCAST(CMyFormView1,<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; ((CFrameWnd*)pChildWnd)-&gt;GetActiveView());<BR>&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pFormView = DYNAMIC_DOWNCAST(CMyFormView1, pChildWnd);<BR></FONT><FONT size=2>}<BR><BR>ASSERT_VALID(pFormView);<BR>if (pFormView)<BR>{<BR>&nbsp;&nbsp;&nbsp; CTreeCtrl&amp; treeCtrl = pFormView-&gt;GetTreeCtrl();</FONT></P><P><FONT size=2>}</pre></td></tr></table><BR><BR>hope this helps...<BR><BR></P></FONT>]]>
   </description>
   <pubDate>Wed, 07 Jul 2004 18:04:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2446&amp;title=how-to-access-control-on-pane1-from-pane2#2446</guid>
  </item> 
  <item>
   <title><![CDATA[How to access c&#111;ntrol &#111;n Pane1 from Pane2 : Thank you. My m_paneManager is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2445&amp;title=how-to-access-control-on-pane1-from-pane2#2445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=131">AdrianM</a><br /><strong>Subject:</strong> 921<br /><strong>Posted:</strong> 07 July 2004 at 5:50pm<br /><br /><P><FONT face="Courier New, Courier, mono" size=2>Thank you.&nbsp; My m_paneManager is actually in my MainFrame.&nbsp; So I modified the code to add CMainFrame in order to access m_paneManager...</FONT></P><P><FONT face="Courier New, Courier, mono" size=2><table width="99%"><tr><td><pre class="BBcode"></FONT></P><P><FONT face="Courier New, Courier, mono"><FONT size=2>CMainFrame* mf = (CMainFrame*)AfxGetMainWnd();<BR></FONT></FONT><FONT face="Courier New, Courier, mono" size=2>CXTPDockingPane* pPane = mf-&gt;m_paneManager.FindPane(IDD_MYFORMVIEW1);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>C</FONT><FONT face="Courier New, Courier, mono" size=2>MyFormView1* pFormView = DYNAMIC_DOWNCAST(CMyFormView1, pPane-&gt;GetChild());<BR>&nbsp;<BR>if (pFormView)<BR>{</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CTreeCtrl&amp; treeCtrl = pFormView-&gt;GetTreeCtrl();</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>}</FONT></P><P><FONT face="Courier New, Courier, mono" size=2></pre></td></tr></table></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>It looks like its close to working.. but the only thing that is not working now is that pFormView is FALSE so the IF statement doesn't execute.&nbsp; Did I call CMainFrame incorrectly?</FONT></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 07 Jul 2004 17:50:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2445&amp;title=how-to-access-control-on-pane1-from-pane2#2445</guid>
  </item> 
  <item>
   <title><![CDATA[How to access c&#111;ntrol &#111;n Pane1 from Pane2 : Hello, Assuming that you have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2444&amp;title=how-to-access-control-on-pane1-from-pane2#2444</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 921<br /><strong>Posted:</strong> 07 July 2004 at 3:43pm<br /><br /><P>Hello,</P><P>Assuming that you have a CTreeCtrl member of your CFormView class as show below:<BR><BR><table width="99%"><tr><td><pre class="BBcode">class CMyFormView : public CFormView<BR>{<BR>&nbsp;&nbsp;&nbsp; ... code snip<BR><BR>protected:<BR>&nbsp;&nbsp;&nbsp; CTreeCtrl m_wndTreeCtrl;<BR><BR>public:<BR>&nbsp;&nbsp;&nbsp; CTreeCtrl&amp; GetTreeCtrl() {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return m_wndTreeCtrl;<BR>&nbsp;&nbsp;&nbsp; }<BR>};</pre></td></tr></table></P><P>You could do the following:<BR><BR><table width="99%"><tr><td><pre class="BBcode">CXTPDockingPane* pPane = m_paneManager.FindPane(ID_TO_YOURDOCKINGPANE);<BR>CMyFormView* pFormView = DYNAMIC_DOWNCAST(CMyFormView, pPane-&gt;GetChild());<BR>if (pFormView)<BR>{<BR>&nbsp;&nbsp;&nbsp; CTreeCtrl&amp; treeCtrl = pFormView-&gt;GetTreeCtrl();<BR>}</pre></td></tr></table><BR><BR>Hope this helps...<BR><BR>Kind Regards,<BR>Codejock Support<BR></P>]]>
   </description>
   <pubDate>Wed, 07 Jul 2004 15:43:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2444&amp;title=how-to-access-control-on-pane1-from-pane2#2444</guid>
  </item> 
  <item>
   <title><![CDATA[How to access c&#111;ntrol &#111;n Pane1 from Pane2 : I&amp;#039;m trying to access tree...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2441&amp;title=how-to-access-control-on-pane1-from-pane2#2441</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=131">AdrianM</a><br /><strong>Subject:</strong> 921<br /><strong>Posted:</strong> 06 July 2004 at 7:42pm<br /><br /><P>I'm trying to access tree control data&nbsp;on inactive Pane2, from active Pane1.&nbsp; Both are CFormView panes in an SDI app.&nbsp; Pane 2 is also attached to Pane 1 so it gives a tab box effect. &nbsp; </P><P>Any suggestions on how to do this?</P><P>Thanks,</P><P>- Adrian</P><span style="font-size:10px"><br /><br />Edited by AdrianM</span>]]>
   </description>
   <pubDate>Tue, 06 Jul 2004 19:42:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=921&amp;PID=2441&amp;title=how-to-access-control-on-pane1-from-pane2#2441</guid>
  </item> 
 </channel>
</rss>