December 21, 2024

Dynamic Windows Function [dw_bitmapbutton_new_from_file]

Syntax

HWND dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename)

Parameters

char *text: Bubble help text to be displayed.
unsigned long id: An ID to be used with dw_window_from_id() or 0L.
char *filename: Name of the file, omit extention to have DW pick the appropriate file extension. (BMP on OS/2 or Windows, XPM on Unix, PNG on Mac)

Returns

HWND A handle to a bitmap button window or NULL on failure.

Description

Create a new bitmap button window (widget) to be packed from a file.