VC++禁止调整窗口大小的方法

来源:互联网 发布:filmconvert pro mac 编辑:程序博客网 时间:2024/04/30 07:32

在ShowWindow (hWnd, iCmdShow) ;前面加上如下几句:

DWORD   dwStyle   =   GetWindowLong(hWnd, GWL_STYLE);
dwStyle   &=   ~(WS_SIZEBOX);  
SetWindowLong(hWnd, GWL_STYLE, dwStyle);

即可设置窗口大小不可调整

原创粉丝点击