Jump to content
  • Advertisement


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


Simple Win32 Maximized App

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

I am having trouble initializing my Win32 application to be maximized while not allowing the user to move the window. When my app is created, it maximizes too much and covers up the taskbar. Additionally, I can move the window around by clicking on the caption bar. Double-clicking on the title bar will also resize the window to the smallest possible size (due to my providing 0,0 as the width and height of the window). What I am looking for is a way to maximize my app without covering the taskbar and with a greyed-out maximize button. Here are my current window creation settings: HWND hwnd = CreateWindow( "class1", "Caption", WS_OVERLAPPED | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZE, 0, 0, 0, 0, NULL, NULL, hinstance, NULL ); //maximize window ShowWindow(main_hwnd, SW_SHOWMAXIMIZED); Any ideas? -Mike

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.

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!