Sign in to follow this  
OutOfInspiration

Resizable windows with scaling content

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this