<?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 : Title bar close button NOT greyed when disabled</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Title bar close button NOT greyed when disabled]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 20:36:11 +0000</pubDate>
  <lastBuildDate>Thu, 18 Oct 2007 05:10:22 +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=8445</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[Title bar close button NOT greyed when disabled : Yes, its changed :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8445&amp;PID=27417&amp;title=title-bar-close-button-not-greyed-when-disabled#27417</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8445<br /><strong>Posted:</strong> 18 October 2007 at 5:10am<br /><br />Yes, its changed :)]]>
   </description>
   <pubDate>Thu, 18 Oct 2007 05:10:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8445&amp;PID=27417&amp;title=title-bar-close-button-not-greyed-when-disabled#27417</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar close button NOT greyed when disabled : Thanks Oleg, that fixed the problem,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8445&amp;PID=27390&amp;title=title-bar-close-button-not-greyed-when-disabled#27390</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 8445<br /><strong>Posted:</strong> 17 October 2007 at 11:28am<br /><br />Thanks Oleg, that fixed the problem, although I had to OR MF_DISABLED with MF_GRAYED in order to gray out the menu item too.<DIV>&nbsp;</DIV><DIV>For the record, the documentation for EnableMenuItem states that MF_GRAYED means "disabled and grayed", and in fact this is what happens when skinning is not being used, so I think you still have a minor issue to fix. <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 17 Oct 2007 11:28:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8445&amp;PID=27390&amp;title=title-bar-close-button-not-greyed-when-disabled#27390</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar close button NOT greyed when disabled : Hi,  Just set MF_DISABLED instead...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8445&amp;PID=27382&amp;title=title-bar-close-button-not-greyed-when-disabled#27382</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8445<br /><strong>Posted:</strong> 17 October 2007 at 10:14am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Just set MF_DISABLED instead of <FONT color=#010001 size=2>MF_GRAYED.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 17 Oct 2007 10:14:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8445&amp;PID=27382&amp;title=title-bar-close-button-not-greyed-when-disabled#27382</guid>
  </item> 
  <item>
   <title><![CDATA[Title bar close button NOT greyed when disabled : When skinning is applied, if I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8445&amp;PID=27375&amp;title=title-bar-close-button-not-greyed-when-disabled#27375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 8445<br /><strong>Posted:</strong> 17 October 2007 at 7:55am<br /><br />When skinning is applied, if I open a dialog and disable the close button in the OnInitDialog() handler, the close button in the title bar remains active! <img src="https://forum.codejock.com/smileys/smiley18.gif" border="0"><DIV>&nbsp;</DIV><DIV>The 'Close' option in the system menu is greyed out, and the 'Close' button does nothing when clicked, but the button itself remains active.&nbsp; If skinning is removed the button greys out as expected.</DIV><DIV>&nbsp;</DIV><DIV>I use the following command to disable the close button:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2>::</FONT><FONT color=#010001 size=2>EnableMenuItem</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>GetSystemMenu</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>hwnd</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>FALSE</FONT><FONT size=2>), </FONT><FONT color=#010001 size=2>SC_CLOSE</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>MF_GRAYED</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Any ideas on how to fix this? Thanks.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 17 Oct 2007 07:55:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8445&amp;PID=27375&amp;title=title-bar-close-button-not-greyed-when-disabled#27375</guid>
  </item> 
 </channel>
</rss>