DarkBASIC Professional Help File

DX11 GET WINDOW CLIENT WIDTH

Retrieves the current width, in pixels, of the render window's client area.
The client area is the part of the window that can be accessed for rendering / drawing, in other words the part of the window that
isn't part of its borders or caption bar. If your window has no border and caption bar, this function will return the same value
as DX11 GET WINDOW WIDTH.
Take note that the return value of this function isn't trustable if in fullscreen mode.

Syntax

    Return Dword = DX11 GET WINDOW CLIENT WIDTH()

Parameters

    This function does not take any parameters.

Returns

The current client 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