*topic* preferencially using WNDCLASSEX "style" argument (like CS_NOCLOSE)
Thanks.
--EDIT--
Answer: Disableing the "resize" function on a window
This is a discussion on How do i disable maximize? within the Windows Programming forums, part of the Platform Specific Boards category; *topic* preferencially using WNDCLASSEX "style" argument (like CS_NOCLOSE) Thanks. --EDIT-- Answer: http://cboard.cprogramming.com/showthread.php?t=64492...
*topic* preferencially using WNDCLASSEX "style" argument (like CS_NOCLOSE)
Thanks.
--EDIT--
Answer: Disableing the "resize" function on a window
Last edited by Tropicalia; 10-01-2006 at 09:59 AM.
Disabling maximize and resizing:
As the window style.Code:WS_OVERLAPPEDWINDOW & ~(WS_THICKFRAME|WS_MAXIMIZEBOX)
Or make a window not resizeable after creating it:
Where hwnd is the window handle.Code:DWORD dwStyle = GetWindowLong(hwnd, GWL_STYLE); dwStyle &= ~(WS_MAXIMIZEBOX|WS_MINIMIZEBOX); SetWindowLong(hwnd, GWL_STYLE, dwStyle);
Last edited by maxorator; 10-01-2006 at 11:08 AM.
"The Internet treats censorship as damage and routes around it." - John Gilmore