LONG SendDlgItemMessage( int nID, UINT message, UINT wParam = 0, LONG lParam = 0 );
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.
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.
Specifies the value returned by the control's window procedure, or 0 if the control identifier is not valid.
CWnd::SendMessage, ::SendDlgItemMessage