WinXDialog_Message


WinXDialog_Message (hWnd, text$, title$, iIcon, hMod)

Displays a message dialog box.

Parameter Description
hWnd The handle to the owner window for the dialog, can be 0 for no owner window
text$ The message to display, can include newline characters "\n"
title$ The title of the dialog box
iIcon The resource id of the icon to use. Can be 0 for no icon in which case the hMod parameter is ignored
hMod The handle to the module from which the icon comes.

Returns

$$TRUE on success or $$FALSE on fail

Remarks

This is suitable for About boxes and other such messages. For lighter weight messages such as debug messages, warnings and errors, I sugest WinXDialog_Error.

Examples

' A very simple about dialog box
WinXDialog_Message (#hMain, "My App\nVersion 1.0\n(C) Me", "About My App", $$ICON_APP, GetModuleHandleA(0))

Related Links

WinXDialog_Error
WinXDialog_Question