CWnd::SendDlgItemMessage

Syntax

LONG SendDlgItemMessage( int nID, UINT message, UINT wParam = 0, LONG lParam = 0 );

Parameters

nID

Specifies the integer identifier of the dialog item that is to receive the message.

message

Specifies the message value.

wParam

Specifies additional message information. The content of this parameter depends on the message being sent.

lParam

Specifies additional message information. The content of this parameter depends on the message being sent.

Remarks

Sends a message to the specified control.

The SendDlgItemMessage member function does not return until the message has been processed.

Using SendDlgItemMessage is identical to obtaining a CWnd* to the given control and calling the SendMessage member function.

Return Value

Specifies the value returned by the control's window procedure, or 0 if the control identifier is not valid.

See Also

CWnd::SendMessage, ::SendDlgItemMessage