title: How to gray out close button in C++?
body: <p>How to gray out the close button in C++? Is it possible?
  I tried that;</p>
  
  <pre><code>#define WINVER 0x0500
  #include&lt;windows.h&gt;
  DeleteMenu(SystemMenu, SC_CLOSE, MF_BYCOMMAND);
  </code></pre>
  
  <p>But didn't worked.</p>