Disabling window resize

Started by
14 comments, last by emileej 19 years, 11 months ago
How do you, in C++ on windows, disable the resizing functionality of your window - like you in java use the setResizable function?
Emil Johansen- SMMOG AI designerhttp://smmog.com
Advertisement
That depends on what GUI toolkit you are using, if any.
grr?
Go stick your gui where the... Ahr never mind ;P
I''m not using any GUI - I am searching for the std. windows interface function.
Emil Johansen- SMMOG AI designerhttp://smmog.com
This might not be the best solution, but you could always resize window to it''s original size when ever it''s size is changed.
in your call to CreateWindow(), use WS_BORDER instead of WS_OVERLAPPEDWINDOW
-------------------------------See my tutorial site: Click here
I am currently using WS_EX_APPWINDOW|WS_EX_ACCEPTFILES and if I add WS_BORDER or use WS_BORDER solely - my window is not displayed.
Emil Johansen- SMMOG AI designerhttp://smmog.com
When you are creating your window with CreateWindow() don''t include WS_THICKFRAME or WS_SIZEBOX for the window style. If you are using WS_OVERLAPPEDWINDOW as the style, then it is including WS_THICKFRAME. Instead, use ( WS_OVERLAPPED | WS_SYSMENU | WS_CAPTION ) for your window style.

Hope that solves the problem.
I am not using WS_OVERLAPPEDWINDOW - I am using WS_EX_APPWINDOW|WS_EX_ACCEPTFILES and I am using CreateWindowEx.
Emil Johansen- SMMOG AI designerhttp://smmog.com
Really, you should look in hte help for this kind of information. Because I am so kind i have found a topic that might be of help to you.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/Windows/WindowReference/WindowStyles.asp
If you look into MSDN, you will find that WS_EX_APPWINDOW is a combination of many flags.
- fyhuang [ site ]

This topic is closed to new replies.

Advertisement