<?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 : Let one pane act as a view?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Let one pane act as a view?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 00:33:59 +0000</pubDate>
  <lastBuildDate>Mon, 30 Mar 2009 02:00:48 +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=13827</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[Let one pane act as a view? : Hi, Yes, guess its right solution....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13827&amp;PID=47293&amp;title=let-one-pane-act-as-a-view#47293</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13827<br /><strong>Posted:</strong> 30 March 2009 at 2:00am<br /><br />Hi,<DIV>Yes, guess its right solution. </DIV>]]>
   </description>
   <pubDate>Mon, 30 Mar 2009 02:00:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13827&amp;PID=47293&amp;title=let-one-pane-act-as-a-view#47293</guid>
  </item> 
  <item>
   <title><![CDATA[Let one pane act as a view? : In SDI applications you derive...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13827&amp;PID=47218&amp;title=let-one-pane-act-as-a-view#47218</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13827<br /><strong>Posted:</strong> 27 March 2009 at 2:56am<br /><br /><P>In SDI applications you derive one window from CWnd and always let it have a crack at the command in OnCmdMsg.</P><DIV></DIV>What's the proper way of assigning one pane to act as an active view? That is, one pane should be "in charge" of the other panes.<DIV>&nbsp;</DIV><DIV>It's just a matter of design. In a defined pane layout, I want certain commands to be available when one of&nbsp;<EM>several</EM> panes is active. Your samples only show how to let the active pane have a crack at the command.</DIV><DIV>&nbsp;</DIV><DIV>Is this the right approach?</DIV><DIV>&nbsp;</DIV><DIV>CMainFrame::OnCmdMsg(...)</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp;&nbsp; if (m_paneMyView.OnCmdMsg(...))</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return TRUE;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; CWnd *pWnd = m_paneManager.GetActiveWindowPane();</DIV><DIV>&nbsp;&nbsp;&nbsp; if (pWnd &amp;&amp; pWnd != &amp;m_paneMyView)</DIV><DIV>&nbsp;&nbsp;&nbsp; {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pWnd-&gt;OnCmdMsg(...);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return TRUE;</DIV><DIV>&nbsp;&nbsp;&nbsp; }</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>I'm not sure how to handle the active view since I do not use the Doc/View architecture. I suppose I could store an "active pane"-pointer for this purpose.</DIV><DIV>&nbsp;</DIV><DIV>What do you think?</DIV>]]>
   </description>
   <pubDate>Fri, 27 Mar 2009 02:56:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13827&amp;PID=47218&amp;title=let-one-pane-act-as-a-view#47218</guid>
  </item> 
 </channel>
</rss>