Disabling window resize
How do you, in C++ on windows, disable the resizing functionality of your window - like you in java use the setResizable function?
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.
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.
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.
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.
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.
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.
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
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/Windows/WindowReference/WindowStyles.asp
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement