<?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 : Remove close button from system menu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Remove close button from system menu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 14:00:10 +0000</pubDate>
  <lastBuildDate>Thu, 10 Jan 2008 11:51:34 +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=9242</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[Remove close button from system menu : Hello, It works for me.  Maybe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=30040&amp;title=remove-close-button-from-system-menu#30040</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9242<br /><strong>Posted:</strong> 10 January 2008 at 11:51am<br /><br /><DIV>Hello,</DIV><DIV>It works for me. </DIV><DIV>Maybe your have older version and it was added after.</DIV>]]>
   </description>
   <pubDate>Thu, 10 Jan 2008 11:51:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=30040&amp;title=remove-close-button-from-system-menu#30040</guid>
  </item> 
  <item>
   <title><![CDATA[Remove close button from system menu : Hi,  The above solution functions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29984&amp;title=remove-close-button-from-system-menu#29984</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3393">Gonzo</a><br /><strong>Subject:</strong> 9242<br /><strong>Posted:</strong> 08 January 2008 at 7:20pm<br /><br />Hi,<br /><br />The above solution functions as long as I do not have "EnableOffice2007Frame(pCommandBars)" in my code. I would like to maintain this frame for my look and feel.  Here is a little more code to debug the problem. <br /><br />#define CDialogDlgBase CXTPDialogBase&lt;CXTResizeDialog&gt;<br /><br />BOOL CMyApp::OnInitDialog()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;CDialogDlgBase::OnInitDialog();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;// Init the menus<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;VERIFY(InitCommandBars());<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;CXTPCommandBars* pCommandBars = GetCommandBars();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;LoadCommandBars(_T("CommandBars"));<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;// Set the Office 2007 theme<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;CXTPPaintManager::SetCustomTheme(new&nbsp;&nbsp;&nbsp;&nbsp;CXTPOffice2007Theme());<br />&nbsp;&nbsp;&nbsp;&nbsp;EnableOffice2007Frame(pCommandBars);<br />&nbsp;&nbsp;&nbsp;&nbsp;pCommandBars-&gt;RedrawCommandBars();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;CMenu* pSysMenu = GetSystemMenu(FALSE); <br />&nbsp;&nbsp;&nbsp;&nbsp;if (pSysMenu != NULL)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pSysMenu-&gt;EnableMenuItem(SC_CLOSE, MF_DISABLED);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return TRUE;  <br />}<br />]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 19:20:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29984&amp;title=remove-close-button-from-system-menu#29984</guid>
  </item> 
  <item>
   <title><![CDATA[Remove close button from system menu : Hi,  to disable you can set...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29973&amp;title=remove-close-button-from-system-menu#29973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9242<br /><strong>Posted:</strong> 08 January 2008 at 3:11pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>to disable you can set MF_DISABLED state for SC_CLOSE command.</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 15:11:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29973&amp;title=remove-close-button-from-system-menu#29973</guid>
  </item> 
  <item>
   <title><![CDATA[Remove close button from system menu : Hi,  I don&amp;#039;t want to remove...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29966&amp;title=remove-close-button-from-system-menu#29966</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3393">Gonzo</a><br /><strong>Subject:</strong> 9242<br /><strong>Posted:</strong> 08 January 2008 at 9:15am<br /><br />Hi,<br /><br />I don't want to remove the whole system menu.  I would just like to disable or remove the close button.]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 09:15:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29966&amp;title=remove-close-button-from-system-menu#29966</guid>
  </item> 
  <item>
   <title><![CDATA[Remove close button from system menu : HI, You can remove whole sysmenu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29935&amp;title=remove-close-button-from-system-menu#29935</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9242<br /><strong>Posted:</strong> 08 January 2008 at 1:50am<br /><br /><P>HI,</P><DIV>You can remove whole sysmenu : remove style WS_SYSMENU</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 01:50:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29935&amp;title=remove-close-button-from-system-menu#29935</guid>
  </item> 
  <item>
   <title><![CDATA[Remove close button from system menu : I am currently using Office2007...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29928&amp;title=remove-close-button-from-system-menu#29928</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3393">Gonzo</a><br /><strong>Subject:</strong> 9242<br /><strong>Posted:</strong> 07 January 2008 at 5:15pm<br /><br />I am currently using Office2007 theme with <br /><br />CXTPDialogBase&lt;CXTResizeDialog&gt; and CXTPOffice2007FrameHook <br /><br />I am trying to get rid of the close button in the system menu which is usually done like this; however, this does not seem to work.  Any suggestions?<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;CMenu* pSysMenu = GetSystemMenu(FALSE);<br />&nbsp;&nbsp;&nbsp;&nbsp;if (pSysMenu != NULL)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pSysMenu-&gt;RemoveMenu(SC_CLOSE,MF_BYCOMMAND);]]>
   </description>
   <pubDate>Mon, 07 Jan 2008 17:15:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9242&amp;PID=29928&amp;title=remove-close-button-from-system-menu#29928</guid>
  </item> 
 </channel>
</rss>