Hi,
[...This is actually a question regarding fpGUI...]
How do I switch an existing Form or a new form to fullscreen mode? Under X11 I simply send a NetLayer naWM_STATE_FULLSCREEN message to the window. Any such luck under Windows?
So far I have found there possible options... Are there any better ones I haven't found yet?
Option #1:
Override GETMINMAXINFO to maximize so that the client area would be the display size. Use AdjustClientRect to find out the size..
Option #2:
WS_POPUP + SW_SHOWMAXIMIZED (XP at least)
Option #3:
Similar to #2. Create a popup window exactly the size of the desktop and positioned at 0,0. Do not use the WS_CAPTION, WS_MINIMIZEBOX, WS_MINIMIZEBOX, or WS_SYSMENU styles.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
