User Tools

Site Tools


switching_20back_20from_20full-screen

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.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
switching_20back_20from_20full-screen.txt · Last modified: 2018/04/17 15:00 by richardrussell