使用wm_syscommand消息来拦截窗口最大,最小化<br>WM_SYSCOMMAND <br>uCmdType = wParam; // type of system command requested <br>xPos = LOWORD(lParam); // horizontal postion, in screen coordinates <br>yPos = HIWORD(lParam); // vertical postion, in screen coordinates <br><br> uCmdType可以为下列值<br>SC_MAXIMIZE (or SC_ZOOM) Maximizes the window.<br>SC_MINIMIZE (or SC_ICON) Minimizes the window.<br>