<?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 : Popup Menu Repaint Issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Popup Menu Repaint Issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 02:53:47 +0000</pubDate>
  <lastBuildDate>Thu, 08 Jun 2006 20:29:27 +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=4379</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[Popup Menu Repaint Issue :  I am having a problem where...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4379&amp;PID=13528&amp;title=popup-menu-repaint-issue#13528</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1934">cgaskill</a><br /><strong>Subject:</strong> 4379<br /><strong>Posted:</strong> 08 June 2006 at 8:29pm<br /><br />I am having a problem where the popup menu from TrackPopupMenu is not repainting after it closes.<br><img src="uploads/cgaskill/2006-06-08_202407_Before.JPG" border="0"><br>Before<br><img src="uploads/cgaskill/2006-06-08_202433_After.JPG" border="0"><br>After<br><br>We are a regular DLL that lives inside of a Tab in a much larger application that calls into us via API calls.&nbsp; We create an CXTPFrameWnd as a child window and all our code is built on top of all that.&nbsp; Our CXTPFrameWnd starts with the Blue Gradient Caption bar, includes the CXTPToolBar and the CXTPReportControl.<br><br>Is there some windows message I need to be handling?&nbsp; The odd thing is that if you click back in the ReportControl the menu disappears with no repaint issue.&nbsp; However, if you click outside our component (on the green "Cardiovacular" caption bar) then we get the repaint issue.<br><br><br>06/12 Update<br><br>Not sure if anyone is looking at or interested in this but here I go.&nbsp; If I trace through the CodeJock code and us Spy++ here is what I get.&nbsp; The interesting thing is right after the TrackPopupMenu call there is no repaint issue.&nbsp; It looks as I want it to look.&nbsp; Using Spy++ the next message the window gets is WM_CONTEXTMENU followed by WM_IDLEUPDATECMDUI messages.&nbsp; This popup menu ends up covering another window (derived from CXTPPropertyGrid and managed by CXTPPaneManager)...using Spy++ on this window it's next message after the popup menu goes away is WM_IDLEUPDATECMDUI and up until then it looks okay.&nbsp; So one would think that WM_IDLEUPDATECMDUI is what is causing my problem but it doesn't make sense to me.<br><br>Any ideas out there?<br>]]>
   </description>
   <pubDate>Thu, 08 Jun 2006 20:29:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4379&amp;PID=13528&amp;title=popup-menu-repaint-issue#13528</guid>
  </item> 
 </channel>
</rss>