<?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 : CXTPMenuBar::RefreshSysButtons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTPMenuBar::RefreshSysButtons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 02:59:11 +0000</pubDate>
  <lastBuildDate>Fri, 09 Apr 2010 16:47:45 +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=16571</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[CXTPMenuBar::RefreshSysButtons : After building the app&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16571&amp;PID=58020&amp;title=cxtpmenubarrefreshsysbuttons#58020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 16571<br /><strong>Posted:</strong> 09 April 2010 at 4:47pm<br /><br /><DIV>After building the app's ribbon bar, I search the controls for XTP_ID_MENU_CLOSE and set the xtpFlagManualUpdate so I can enable/disable the ability to close the document's window (in an mdi app).</DIV><DIV>&nbsp;</DIV><DIV>When we restore down and then (re) maximize our MDI window, CJ is recreating the system controls for the window in RefreshSysButtons. This occurs when the timer ID is TID_REFRESH. The fact that the original control had the manual update flag is lost.</DIV><DIV>&nbsp;</DIV><DIV>I need to set the xtpFlagManualUpdate on the close control, which was set on the control that existed before I hit the restore (down) control. I have handled the SC_MAXIMIZE system command but after processing it, CJ has yet to recreate the controls because a timer is involved (TID_REFRESH). I have subclassed the ribbon bar but the only virtual method involved in this scenario is the mfc OnTimer method.</DIV><DIV>&nbsp;</DIV><DIV><DIV>Without the manual update flag, we are no longer&nbsp;given the chance to disable the control.</DIV><DIV>&nbsp;</DIV></DIV><DIV>Is there something occurring I am unaware of that would allow me to robustly address this issue? The TID_REFRESH definition is not public (just defined locally in XTPMenuBar.cpp) and I want to avoid copying that definition to restore the control to its proper state since CJ can change its value at will.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 09 Apr 2010 16:47:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16571&amp;PID=58020&amp;title=cxtpmenubarrefreshsysbuttons#58020</guid>
  </item> 
 </channel>
</rss>