<?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 : Drawing problems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Drawing problems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 12:59:31 +0000</pubDate>
  <lastBuildDate>Thu, 13 Nov 2003 16:29:14 +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=213</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[Drawing problems : Oleg, Sorry for not replying...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=557&amp;title=drawing-problems#557</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=222">jamiei</a><br /><strong>Subject:</strong> 213<br /><strong>Posted:</strong> 13 November 2003 at 4:29pm<br /><br /><P>Oleg,</P><P>Sorry for not replying sooner.</P><P>I tried using your code above, but for some reason my ON_COMMAND_UPDATE handler isn't being called. However, I was using the following and it almost worked:</P><P>&nbsp;CMenu menu;<BR>&nbsp;menu.LoadMenu(IDR_MONITORS_MENU);</P><P>&nbsp;CMenu* pSubMenu = menu.GetSubMenu(0);<BR>&nbsp;// Display the menu at the current mouse location. There's a "bug"<BR>&nbsp;// (Microsoft calls it a feature) in Windows 95 that requires calling<BR>&nbsp;// SetForegroundWindow. To find out more, search for Q135788 in MSDN.<BR>&nbsp;//<BR>&nbsp;CPoint point;<BR>&nbsp;GetCursorPos(&amp;point);<BR>&nbsp;::SetForegroundWindow(m_hWnd);<BR>&nbsp;//ClientToScreen(&amp;point);<BR>&nbsp;GetCursorPos(&amp;m_ptCursorPos);<BR>&nbsp;<BR>&nbsp;CXTPFrameWnd* pFrameWnd = (CXTPFrameWnd*)AfxGetMainWnd();<BR>&nbsp;ASSERT_VALID(pFrameWnd);<BR>&nbsp;CXTPCommandBars::TrackPopupMenu(pSubMenu, 0, point.x, point.y, this);<BR>&nbsp;<BR>&nbsp;::PostMessage(m_hWnd, WM_NULL, 0, 0);<BR>&nbsp;<BR>&nbsp;menu.DestroyMenu();</P><P>&nbsp;</P><P>I'm using this context menu in a TreeView derived class (within a docking pane). If a user highlights a tree item it should enable one of the menu options. Although this works (enabling/disabling), if I then click on the item to action the handler, it doesn't do anything and I get a warning in the debug window: "Warning: not executing disabled command 39776"</P><P>Is it something odd to do with the cursor being updated when I click on the item and the update handler's called again, and disables it?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 13 Nov 2003 16:29:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=557&amp;title=drawing-problems#557</guid>
  </item> 
  <item>
   <title><![CDATA[Drawing problems : I tring to add context menu in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=498&amp;title=drawing-problems#498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 213<br /><strong>Posted:</strong> 05 November 2003 at 11:32pm<br /><br /><P>I tring to add context menu in "Advanced" sample </P><FONT color=#0000ff><P>void</FONT> <FONT color=#0000ff>CHeroesView</FONT>::<FONT color=#880000>OnContextMenu</FONT>(<FONT color=#0000ff>CWnd</FONT>* <FONT color=#808080>pWnd</FONT>, <FONT color=#0000ff>CPoint</FONT> <FONT color=#808080>point</FONT>) </P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#0000ff>CMenu</FONT> <FONT color=#808080>mnu</FONT>;</P><P><FONT color=#808080>mnu</FONT>.<FONT color=#880000>LoadMenu</FONT>(<FONT color=#a000a0>IDR_MAINFRAME</FONT>);</P><P><FONT color=#0000ff>CXTPCommandBars</FONT>::<FONT color=#880000>TrackPopupMenu</FONT>(&amp;<FONT color=#808080>mnu</FONT>, 0, <FONT color=#808080>point</FONT>.<FONT color=#808080>x</FONT>, <FONT color=#808080>point</FONT>.<FONT color=#808080>y</FONT>, <FONT color=#0000ff>this</FONT>); </P></BLOCKQUOTE><P>}</P><P>&nbsp;</P><P>All work as expected.&nbsp; How do you call the menu?</P>]]>
   </description>
   <pubDate>Wed, 05 Nov 2003 23:32:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=498&amp;title=drawing-problems#498</guid>
  </item> 
  <item>
   <title><![CDATA[Drawing problems : That worked great, thanks.  Incidentally,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=496&amp;title=drawing-problems#496</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=222">jamiei</a><br /><strong>Subject:</strong> 213<br /><strong>Posted:</strong> 05 November 2003 at 5:58pm<br /><br /><P>That worked great, thanks. </P><P>Incidentally, I'm having trouble with a context menu in the docking pane (well the view that's attached to one anyway). It seems that I can only provide implementations for the ON_COMMAND or ON_UPDATE_COMMAND_UI handlers, not both. I was wondering if you might be able to suggest any reasons why this might be happening?</P><P>Thanks again,</P><P>Jamie</P><span style="font-size:10px"><br /><br />Edited by jamiei</span>]]>
   </description>
   <pubDate>Wed, 05 Nov 2003 17:58:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=496&amp;title=drawing-problems#496</guid>
  </item> 
  <item>
   <title><![CDATA[Drawing problems : Hello, Try adding the WS_CLIPCHILDREN...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=488&amp;title=drawing-problems#488</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 213<br /><strong>Posted:</strong> 04 November 2003 at 6:37pm<br /><br /><P>Hello,</P><P>Try adding the WS_CLIPCHILDREN style to your CMainFrame class, for example:</P><FONT color=#0000ff><P><FONT face="Courier New, Courier, mono">BOOL</FONT></FONT><FONT face="Courier New, Courier, mono"> <FONT color=#0000ff>CMainFrame</FONT>::<FONT color=#880000>PreCreateWindow</FONT>(<FONT color=#0000ff>CREATESTRUCT</FONT>&amp; <FONT color=#808080>cs</FONT>)<BR>{<BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>if</FONT>( !<FONT color=#0000ff>CFrameWnd</FONT>::<FONT color=#880000>PreCreateWindow</FONT>(<FONT color=#808080>cs</FONT>) )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>return</FONT> <FONT color=#a000a0>FALSE</FONT>;</FONT></P><P><FONT face="Courier New, Courier, mono" color=#008000>&nbsp;&nbsp;&nbsp; // TODO: Modify the Window class or styles here by modifying<BR></FONT><FONT face="Courier New, Courier, mono"><FONT color=#008000>&nbsp;&nbsp;&nbsp; // the CREATESTRUCT cs<BR><BR></FONT><FONT color=#808080>&nbsp;&nbsp;&nbsp; cs</FONT>.<FONT color=#808080>style</FONT> |= <FONT color=#a000a0>WS_CLIPCHILDREN</FONT>|<FONT color=#a000a0>WS_CLIPSIBLINGS</FONT>;</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; return</FONT> <FONT color=#a000a0>TRUE</FONT>;<BR>}</FONT></P><P>Please let me know if this helps.</P><P>Cheers,<BR>Codejock Support</P>]]>
   </description>
   <pubDate>Tue, 04 Nov 2003 18:37:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=488&amp;title=drawing-problems#488</guid>
  </item> 
  <item>
   <title><![CDATA[Drawing problems : I&amp;#039;ve got a standard SDI MFC...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=485&amp;title=drawing-problems#485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=222">jamiei</a><br /><strong>Subject:</strong> 213<br /><strong>Posted:</strong> 04 November 2003 at 3:37pm<br /><br /><P>I've got a standard SDI MFC app that I'm using two docking panes with.</P><P>When these are docked to the left and then hidden, it seems to have trouble drawing them correctly on expanding, once it gets to a certain point it flickers and misses part of the dock + view.</P><P>I've attached a picture of what I'm talking about. Weirdly, if I dock them on the bottom or top it seems to work ok.</P><P><A href="http://forum.codejock.com/uploads/jamiei/396_DockDraw.zip" target="_blank">396_DockDraw.zip</A></P>]]>
   </description>
   <pubDate>Tue, 04 Nov 2003 15:37:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=213&amp;PID=485&amp;title=drawing-problems#485</guid>
  </item> 
 </channel>
</rss>