Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

emileej

Disabling window resize

This topic is 5142 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you, in C++ on windows, disable the resizing functionality of your window - like you in java use the setResizable function?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
That depends on what GUI toolkit you are using, if any.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites
I am not using WS_OVERLAPPEDWINDOW - I am using WS_EX_APPWINDOW|WS_EX_ACCEPTFILES and I am using CreateWindowEx.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!