<?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 : GetActiveView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : GetActiveView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 19:10:36 +0000</pubDate>
  <lastBuildDate>Fri, 23 Apr 2004 08:43:12 +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=617</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[GetActiveView : I&amp;#039;ve experienced another...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=617&amp;PID=1716&amp;title=getactiveview#1716</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=443">ipaqlinux48</a><br /><strong>Subject:</strong> 617<br /><strong>Posted:</strong> 23 April 2004 at 8:43am<br /><br /><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>I've experienced another problem. When my view is undocked, the menubar of my main window won't react om mouseclicks. Finally, I've solved this by inserting the next piece of code:<BR>int CMyView::OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message)<BR>{<BR>&nbsp;&nbsp;&nbsp; // TODO: Add your message handler code here and/or call default<BR>&nbsp;&nbsp;&nbsp; return CWnd::OnMouseActivate(pDesktopWnd, nHitTest, message);<BR>}<BR>I hope it fixes your problem.</FONT></P><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=1>But now I have another problem. When my view is undoced, it seems that it is disconnected from my document. I'll let you know something if I have fixed this problem. In the meantime, good luck with your problem.</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=2></FONT></P>]]>
   </description>
   <pubDate>Fri, 23 Apr 2004 08:43:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=617&amp;PID=1716&amp;title=getactiveview#1716</guid>
  </item> 
  <item>
   <title><![CDATA[GetActiveView : I am using GetActiveView to determine...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=617&amp;PID=1601&amp;title=getactiveview#1601</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=251">JamesC</a><br /><strong>Subject:</strong> 617<br /><strong>Posted:</strong> 12 April 2004 at 1:58pm<br /><br />I am using GetActiveView to determine what view in the docking pane has focus. Everything works fine as long as the panes are docked. but if they are floating then GetActiveView does not find the panes. The parent has changed. I am wondering if there is a better way to determine what view has focus. <br /><br />What i currently ended up doing was to first get the active view and then check to see if the view is the "main" view. if it is the "main" view, then get the focus (which is either the pane or the "main" view). it just seems like alot of steps.<br /><br />here is the code...<br /><br />CView *pActiveView = pDoc-&gt;m_pFrame-&gt;GetActiveView();<br />CWnd  *pActiveFocus = NULL;  <br />if (pActiveView-&gt;IsKindOf(RUNTIME_CLASS(CMyView)))<br />  {<br />&nbsp;&nbsp;&nbsp;&nbsp;pActiveFocus = pDoc-&gt;m_pFrame-&gt;GetFocus();<br />&nbsp;&nbsp;&nbsp;&nbsp;if ((pActiveFocus != pActiveView) &&<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (pActiveFocus-&gt;IsKindOf(RUNTIME_CLASS(CView))))<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pActiveView = dynamic_cast&lt;CView*&gt;(pActiveFocus);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />  }]]>
   </description>
   <pubDate>Mon, 12 Apr 2004 13:58:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=617&amp;PID=1601&amp;title=getactiveview#1601</guid>
  </item> 
 </channel>
</rss>