<?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 : Disabling the System Menu&#039;s Close Button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Disabling the System Menu&#039;s Close Button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 06:07:12 +0000</pubDate>
  <lastBuildDate>Tue, 24 Jun 2008 12:37:06 +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=11191</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[Disabling the System Menu&#039;s Close Button : My application sometimes needs...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11191&amp;PID=37359&amp;title=disabling-the-system-menus-close-button#37359</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4092">71SoCal</a><br /><strong>Subject:</strong> 11191<br /><strong>Posted:</strong> 24 June 2008 at 12:37pm<br /><br />My application sometimes needs to disable the mainframe's close button.&nbsp; Before using CodeJock, it worked correctly with the following code:<DIV>&nbsp;</DIV><DIV>CMenu* pMenu = GetSystemMenu(bOn);</DIV><DIV>if (!bOn)</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp; pMenu-&gt;ModifyMenu(SC_CLOSE, MF_BYCOMMAND | MF_GRAYED);</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>Now that I've added the CodeJock skinning and command bar stuff, the code still runs, but the close button remains enabled.</DIV><DIV>&nbsp;</DIV><DIV>I'm guessing that I need to make a different call into the CXTPMDIFrameWnd class, but I'm not sure what.</DIV><DIV>&nbsp;</DIV><DIV>Any help would be appreciated. </DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Mike</DIV>]]>
   </description>
   <pubDate>Tue, 24 Jun 2008 12:37:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11191&amp;PID=37359&amp;title=disabling-the-system-menus-close-button#37359</guid>
  </item> 
 </channel>
</rss>