Jump to content
  • Advertisement

Archived

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

doctorsixstring

Simple Win32 Maximized App

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

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