SENDMESSAGE

Top  Previous  Next

Syntax

UINT = SENDMESSAGE(win as ANYTYPE, msg as UINT, wparam as UINT,lparam as ANYTYPE,OPT id=0 as UINT)

Description

Sends a message to a dialog, window or control.

Parameters

win - Window, dialog or HWND.

msg - Message to send.

wparam - Numeric parameter.

lparam - Any type of variable, constant or UDT.

id - Optional control identifier.

Return value

Message dependent.

Remarks

Convenient replacement for the SendMessageA Windows API.

Example usage

SENDMESSAGE mywnd,WM_CLOSE,0,0