title: How to hide the windows 10 taskbar close button using WINAPI?
body: <p>I need to find a way to remove this button:</p>
  
  <p><a href="https://i.stack.imgur.com/qZsym.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qZsym.png" alt="Taskbar close button"></a></p>
  
  <p>I already tried to put the <code>CS_NOCLOSE</code> flag into the <code>WNDCLASS</code>, but this is not working.</p>
  
  <pre><code>  WNDCLASS    wc;
    wc.style         = CS_OWNDC | CS_NOCLOSE;
    wc.lpfnWndProc   = (WNDPROC)staticWindowProc;
    wc.cbClsExtra    = 0;
    wc.cbWndExtra    = 0;
  </code></pre>
  
  <p>I also have this code inside the callback: </p>
  
  <pre><code>case WM_INITMENU:
    EnableMenuItem((HMENU)wParam, SC_CLOSE, MF_BYCOMMAND | MF_DISABLED); 
    break
  </code></pre>