

#PUREBASIC HIDE WINDOW CODE#
You can use, expand or improve my code for your own. On running this program, the user is taken over all the sub tasks listed in this task one by one.I've seen, many ppl asking, how is it possible to resize a borderless (frameless) window in purebasic.

#PUREBASIC HIDE WINDOW WINDOWS#
SWP_NOMOVE = 2 SWP_NOZORDER = 4 SW_MAXIMIZE = 3 SW_MINIMIZE = 6 SW_RESTORE = 9 SW_HIDE = 0 SW_SHOW = 5 REM Store window handle in a variable: myWindowHandle% = PRINT "Hiding the window in two seconds." WAIT 200 SYS "ShowWindow", myWindowHandle%, SW_HIDE WAIT 200 SYS "ShowWindow", myWindowHandle%, SW_SHOW PRINT "Windows shown again." PRINT "Minimizing the window in two seconds." WAIT 200 SYS "ShowWindow", myWindowHandle%, SW_MINIMIZE WAIT 200 SYS "ShowWindow", myWindowHandle%, SW_RESTORE PRINT "Maximizing the window in two seconds." WAIT 200 SYS "ShowWindow", myWindowHandle%, SW_MAXIMIZE WAIT 200 SYS "ShowWindow", myWindowHandle%, SW_RESTORE PRINT "Now restored to its normal size." PRINT "Resizing the window in two seconds." WAIT 200 SYS "SetWindowPos", myWindowHandle%, 0, 0, 0, 400, 200, \ \ SWP_NOMOVE OR SWP_NOZORDER PRINT "Closing the window in two seconds." WAIT 200 QUIT C Ĭ does not have any standard windowing library, although cross platform libraries are available, and although it's technically possible to create windows from scratch given the Dark powers that C commands, I chose the simplest option, the Windows API.
