DarkBASIC Professional Help File

DX11 GET WINDOW WIDTH

Retrieves the current width, in pixels, of the render window.
Take note that this width includes that of any window borders. This value can be used in conjunction with DX11 GET DESKTOP WIDTH
to center the window horizontally in the middle of the screen.
Take note that the return value of this function isn't trustable if in fullscreen mode.

Syntax

    Return Dword = DX11 GET WINDOW WIDTH()

Parameters

    This function does not take any parameters.

Returns

The current width of the render window, in pixels. The size of the window can be changed by the user by dragging its borders, maximizing it, etc. so if you allow this the size may change at runtime.

See also

DISPLAY Functions Menu
DX11 Function Categories