Switching back from full-screen

by Richard Russell, October 2013

The main Help documentation tells you how to switch to full-screen mode but it doesn't tell you how to switch back to a regular window if you need to. To do that you can use code similar to the following:

        GWL_STYLE = -16
        HWND_NOTOPMOST = -2
        SWP_FRAMECHANGED = 32
        SYS "SetWindowLong", @hwnd%, GWL_STYLE, &16CF0000
        SYS "SetWindowPos", @hwnd%, HWND_NOTOPMOST, 100, 100, 800, 600, SWP_FRAMECHANGED
        VDU 26

The window position (100, 100) and size (800, 600) values can, of course, be different from those shown, as preferred.