March 28, 2024

Dynamic Windows Function [dw_window_set_bitmap_from_data]

Syntax

int dw_window_set_bitmap_from_data(HWND handle, unsigned long id, char *data, int len)

Parameters

HWND handle: Handle to the window.
unsigned long id: An ID to be used to specify the icon (pass 0 if you use the data param).
char *data: Memory buffer containing image (Bitmap on OS/2 or Windows and a pixmap on Unix, PNG on Mac, pass NULL if you use the id param).
int len: Length of the data pointed to by data.

Returns

int DW_ERROR_NONE on success. DW_ERROR_UNKNOWN if the parameters were invalid. DW_ERROR_GENERAL if the bitmap was unable to be loaded.

Description

Sets the bitmap used for a given static window from data.

Remarks

Prior to version 3.3 this function returned nothing (void).