
No Border Dialog Behavior
I have a dialog with no border (STYLE WS_POPUP | WS_VISIBLE), which I would
like to maximize correctly. When I send the dialog a standard maximize
msg...
SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE, 0 );
...the dialog maximizes to fill the entire screen, including obscuring the
system taskbar. Changing the STYLE to any border (WS_BORDER) changes the
maximize to the expected behavior (only using the desktop region).
Also, when my dialog has no border, the "Minimize All Windows" (taskbat
context menu) does not minimize my dialog.
Can anyone explain this behavior and recommend a fix?
Thanks,
- Scott