Jump to content
  • Advertisement
Sign in to follow this  
OutOfInspiration

Resizable windows with scaling content

This topic is 3412 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

Hi, i'm pretty new on c++, is it possible to create a window that scales the content? Because now when i rescale the window the content stays the same. the only code i can show is the following... Isn't their like a WS_SCALECONTENT? lol Thanks! OutOfInspiration CreateWindow(m_TitlePtr->ToTChar(), m_TitlePtr->ToTChar(), WS_POPUPWINDOW | WS_CAPTION | WS_MAXIMIZEBOX | WS_SIZEBOX | WS_MINIMIZEBOX | WS_CLIPCHILDREN, iXWindowPos, iYWindowPos, iWindowWidth, iWindowHeight, NULL, NULL, m_hInstance, NULL);

Share this post


Link to post
Share on other sites
Advertisement
Using the Windows-API you have to do this on your own. You just have to do this in your MsgProc. Just call in your MessageProg to WM_SIZE. Call there your rescale-function.

Kimmi

Share this post


Link to post
Share on other sites
yeah you have to do it yourself, you'd usually create a function to do it, as a function of of width and height of the window. Petzold's book has quite a bit of information of that sort of thing.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!