The SetWindowLong function changes an attribute of the specified window. The function also sets the 32-bit (long) value at the specified offset into the extra window memory.LONG SetWindowLong( HWND hWnd, int nIndex, LONG dwNewLong );The SetWindowLongPtr function changes an attribute of the specified window. The function also sets a value at the specified offset in the extra window memory.LONG_PTR SetWindowLongPtr( HWND hWnd, int nIndex, LONG_PTR dwNewLong );
int nIndex,
LONG dwNewLong
);The SetWindowLongPtr function changes an attribute of the specified window. The function also sets a value at the specified offset in the extra window memory.LONG_PTR SetWindowLongPtr( HWND hWnd,
int nIndex,
LONG_PTR dwNewLong
);
pWnd->ModifyStyle(WS_MAXIMIZEBOX|WS_MINIMIZEBOX,NULL,SWP_DRAWFRAME);
==================
关闭最大最小近钮
是增加
pWnd->ModifyStyle(~WS_MAXIMIZEBOX && WS_MINIMIZEBOX,NULL,SWP_DRAWFRAME);