December 21, 2024

Dynamic Windows Function [dw_window_set_size]

Syntax

void dw_window_set_size(HWND handle, unsigned long width, unsigned long height)

Parameters

HWND handle: Window (widget) handle.
unsigned long width: New width in pixels or 0 to let the system decide.
unsigned long height: New height in pixels or 0 to let the system decide.

Description

Sets the size of a given window (widget).

Remarks

As of version 2.3 you can pass 0 as width or height to autodetect the required size of the window on OS/2, Windows, Mac and GTK.

As of version 3.2, this function does nothing on iOS and Android. (They always use the full screen)