April 20, 2024

Dynamic Windows Function [dw_notification_new]

Syntax

HWND dw_notification_new(char *title, char *imagepath, char *description, ...)

Parameters

char *title: The short title of the notification.
char *imagepath: Path to an image to display or NULL if none.
char *description: A longer description of the notification, or NULL if none is necessary.
...: Additional variables for the description format.

Returns

HWND A handle to the notification which can be used to attach a "clicked" event if desired, or NULL if it fails or notifications are not supported by the system.

Description

Creates a new system notification if possible.

Remarks

This will create a system notification that will show in the notifaction panel on supported systems, which may be clicked to perform another task.

This API was introduced in version 3.1.

This function is not supported on OS/2, MacOS prior to 10.8, Windows prior to 8, and GTK with GLib older than 2.40.