<?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 : &#079;nMouseActivate bug needs &#100;ocumentati&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : &#079;nMouseActivate bug needs &#100;ocumentati&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 12:59:11 +0000</pubDate>
  <lastBuildDate>Tue, 11 May 2004 13:42:32 +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=707</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[&#079;nMouseActivate bug needs &#100;ocumentati&#111;n :  I actually use CView and CFrame...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1887&amp;title=onmouseactivate-bug-needs-documentation#1887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 707<br /><strong>Posted:</strong> 11 May 2004 at 1:42pm<br /><br /><br>I actually use CView and CFrame derived classes but CDocument itself asthe parameters to CDocTemplates.&nbsp; I don't actually use theCDocument (its always null) but I still call it the doc/view model, andI havn't run into this problem before trying to use a CView in adocking pane.&nbsp; Anyway, I'm not saying its neccessarily a bug withthe docking panes, but it is something that most people like myselfwould have to spend a lot of time researching for a fix when ussingdocking panes with AttachView() so it would save us all a lot of timeto put a simple comment in the header file near AttachView suggestingthat the programmer override WM_MOUSEACTIVATE.<br><br>]]>
   </description>
   <pubDate>Tue, 11 May 2004 13:42:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1887&amp;title=onmouseactivate-bug-needs-documentation#1887</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nMouseActivate bug needs &#100;ocumentati&#111;n : I mean if you use a CView without...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1885&amp;title=onmouseactivate-bug-needs-documentation#1885</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=150">Sven</a><br /><strong>Subject:</strong> 707<br /><strong>Posted:</strong> 11 May 2004 at 3:38am<br /><br /><P>I mean if you use a CView without a CDocument. In the doc/view model the mainframe has a active&nbsp;view and routes the menu commands to it. If you activate another view with the mouse, this view gets a WM_MOUSEACTIVATE and activates itself in the mainframe (with SetActiveView).</P><P>One Example: In one of my apps I don't use the doc/view model. The mainframe dispatches the commands to the child window(s). One of the child window is a derived CFormView. If OnMouseActivate is not overridden, the derived CFormView calls SetActiveView in the mainframe and all menu commands are routed to the CFormView instead to the active child window. The derived CFormView is used as a "normal" window here.</P>]]>
   </description>
   <pubDate>Tue, 11 May 2004 03:38:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1885&amp;title=onmouseactivate-bug-needs-documentation#1885</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nMouseActivate bug needs &#100;ocumentati&#111;n :  Not sure what you really mean...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1882&amp;title=onmouseactivate-bug-needs-documentation#1882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 707<br /><strong>Posted:</strong> 10 May 2004 at 6:25pm<br /><br /><br>Not sure what you really mean by "normal windows" since "normally" Iuse a CView with a CFrame and a CDocument, tied together from aCDocTemplate and there is no problem.&nbsp; Classwizard doesn't evenlist WM_MOUSEACTIVATE as a common override.&nbsp; This problem causedme a lot of headache and even if its not specific to codejock, itdefinately would not hurt anything to mention this next toAttachView()'s comments in order to help us out.<br><br>]]>
   </description>
   <pubDate>Mon, 10 May 2004 18:25:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1882&amp;title=onmouseactivate-bug-needs-documentation#1882</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nMouseActivate bug needs &#100;ocumentati&#111;n : This happens with all views which...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1881&amp;title=onmouseactivate-bug-needs-documentation#1881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=150">Sven</a><br /><strong>Subject:</strong> 707<br /><strong>Posted:</strong> 10 May 2004 at 4:46pm<br /><br />This happens with all views which are used as normal windows, not only with docking panes. The "problem" is that CView::OnMouseActivate sets always the active view in the mainframe.]]>
   </description>
   <pubDate>Mon, 10 May 2004 16:46:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1881&amp;title=onmouseactivate-bug-needs-documentation#1881</guid>
  </item> 
  <item>
   <title><![CDATA[&#079;nMouseActivate bug needs &#100;ocumentati&#111;n :  In XTPDockingPane.h, the comments...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1875&amp;title=onmouseactivate-bug-needs-documentation#1875</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 707<br /><strong>Posted:</strong> 10 May 2004 at 12:46pm<br /><br /><br>In XTPDockingPane.h, the comments above AttachView <span style="font-weight: bold;">really</span>should mention that the view you attach absolutely must override thepoorly documented MFC message WM_MOUSEACTIVATE and call the CWndversion, in order to bypass the CView version.&nbsp; If your CView doesnot do this, then clicking in your docked pane then floating the panewill cause you to not be able to click on any of the menu including thecontrol box and close X button.&nbsp; If you close the program from thetask bar, right click, and pick close, you get debug assertionsrelating to invalid vtables and such.<br>Adding ON_WM_MOUSEACTIVATE() and<br>void CYOURView::OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message)<br>{<br>&nbsp;&nbsp;&nbsp; CWnd::OnMouseActivate(pDesktopWnd, nHitTest, message);<br>}<br>will solve all these problems quite nicely.&nbsp; It took me a lot ofdigging through GUI_VisualStudio7 sample, which was the only samplethat used AttachView for the docking panes, in order to reproduce theproblem I was having. Finally when I commented out OnMouseActivate themenus broke like they always had in my program.<br>No place in the help files or code comments mentions usingOnMouseActivate, so it would have been a great help to me, and could bea great help to others in the future, to mention OnMouseActivate inXTPDockingPane.h<br><br>]]>
   </description>
   <pubDate>Mon, 10 May 2004 12:46:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=707&amp;PID=1875&amp;title=onmouseactivate-bug-needs-documentation#1875</guid>
  </item> 
 </channel>
</rss>