how to display a dialog based window on full screen?
Printable View
how to display a dialog based window on full screen?
Do you just need maximize it or do you want it to NOT show the caption bar etc. ?
title bar, task bar etc also should be removed
You would have to calculate rectangle of the full dialog assuming that client rectangle is equal to a screen size and move dialog slightly off the screen. Upper left corner will have negative coordinates.
Also handle WM_GETMINMAXINFO setting ptMaxSize ptMaxTrackSize members of the MINMAXINFO structure to size larger than screen size.
You do not have to remove anything.
Is that OK that you make the Title Bar property as FALSE during the design time and in OnInitDialog () you can make,
ShowWindow(SW_MAXIMIZE);
Or do you want remove the title bart etc in runtime??
ShowWindow(SW_MAXIMIZE) will show window maximized and that does not fill the whole screen. Also this would require removing title bar, status and toolbar.
Hi,
Hope this link would help,
http://www.codeproject.com/dialog/dlgboxtricks.asp
bugfighter
You have to do as JohnCz says. Additionally, you may want to add a button to come out of full screen mode to the previous size.
Also, it may be tricky. But what should happen when user hits ESC in full screen mode ? Do you need to handle that specially to come out of full screen mode ?