<?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 : Where are my MDI icons?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Where are my MDI icons?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 16 May 2026 14:35:55 +0000</pubDate>
  <lastBuildDate>Wed, 25 Jun 2008 18:00:23 +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=11210</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[Where are my MDI icons? : I have a problem where sometimes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11210&amp;PID=37415&amp;title=where-are-my-mdi-icons#37415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 11210<br /><strong>Posted:</strong> 25 June 2008 at 6:00pm<br /><br />I have a problem where sometimes the ribbon bar fails to add the MDI icons (minimize/maximize, restore, close). I have traced the issue to CXTPMenuBar::OnHookMessage.<DIV>&nbsp;</DIV><DIV>In OnHookMessage the code looks for WM_MDICREATE and calls PostMessage(WM_TIMER, TID_REFRESH,0).</DIV><DIV>&nbsp;</DIV><DIV>The problem with the missing icons is that if at anytime during the MDI processing a modal dialog appears, windows will dispatch all the pending messages in the running thread before entering the modal message loop.</DIV><DIV>&nbsp;</DIV><DIV>The result is that the timer message is dispatched and CJ calls GetActiveMdiChildWnd before the MDI window is active and so the CControlMDIButton controls are never created and added to the ribbon.</DIV><DIV>&nbsp;</DIV><DIV>How do I get CJ to add the icons without constantly calling the ribbon RefreshMenu (probably in OnIdle).</DIV><DIV>&nbsp;</DIV><DIV>Perhaps CJ should be making that call to begin with when it does idle processing (like when it does command update UI handling).</DIV>]]>
   </description>
   <pubDate>Wed, 25 Jun 2008 18:00:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11210&amp;PID=37415&amp;title=where-are-my-mdi-icons#37415</guid>
  </item> 
 </channel>
</rss>