Active Forums => QB64 Discussion => Topic started by: bartok on October 12, 2021, 08:48:37 am
Title: A sort of FULLSCREEN
Post by: bartok on October 12, 2021, 08:48:37 am
Hi, in the attached image, the screen has the dimension of _DESKTOPWIDTH and _DESKTOPHEIGHT. But, due to the title bar "Untitled" and Windows's application bar, the lower part of the image is not visible. So, I ask if is there is a command in order to run the program with the indicated botton of the window already "pressed". I'm avoiding the use of _FULSCREEN.
Title: Re: A sort of FULLSCREEN
Post by: SMcNeill on October 12, 2021, 09:23:31 am
a& = SetWindowLongA&(hwnd&, GWL_STYLE, winstyle& AND WS_VISIBLE)' AND NOT WS_VSCROLL) ' AND NOT ws_border)
a& = SetWindowPos&(hwnd&,0,0,0,0,0,39)
PRINT"Press any key to get back border...";: SLEEP
a& = SetWindowLongA&(hwnd&, GWL_STYLE, winstyle2& OR ws_border)
a& = SetWindowPos&(hwnd&,0,0,0,0,0,39)
Of course, this only applies if you are running on a Windows Operating system. I'm running on a Windows 10 right now. Oops, have to go, someone downloaded a big pile of MicroSoft in my path.