how to disable window7 minimize ability
<p>I want to disable all windows minimized ability in win7.I have used  <strong>SetWindowLong</strong> in Python win32gui.</p>

<pre><code>from  win32gui import  *
def disablemin(hwnd,HWMD):
   SetWindowLong(hwnd,win32con.GWL_STYLE,GetWindowLong(hwnd,win32con.GWL_STYLE) &amp; ~win32con.WS_MINIMIZEBOX)
EnumWindows(disablemin, 0)
</code></pre>

<p>But it only made buttons can't be used.I find some windows still can minimize.How to solve it?</p>

<p>There are a few problems with your idea.</p>

<ol>
<li>You're trying to alter the behavior of other windows, windows that aren't yours. This is always a bad idea.</li>
<li>You try to alter the window styles once. This isn't necessarily sufficient; they can be restored by the victim process.</li>
<li>Even if the window style is altered, it doesn't mean the actual minimize box is gone. This just removes the one created by the OS; manually-drawn icons might still be present.</li>
<li>Even if the minimize box is gone, this won't stop calls to <code>ShowWindow(SW_MINIMIZE)</code></li>
</ol>

python c++ pywin32