Simple Win32 Maximized App
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement