SendDlgItemMessage

2.x

  LRESULT SendDlgItemMessage(hwndDlg, idDlgItem, uMsg, wParam, lParam)    
  HWND hwndDlg; /* handle of dialog box */
  int idDlgItem; /* identifier of dialog box item */
  UINT uMsg; /* message */
  WPARAM wParam; /* first message parameter */
  LPARAM lParam; /* second message parameter */

The SendDlgItemMessage function sends a message to a control in a dialog box.

Parameters

hwndDlg

Identifies the dialog box that contains the control.

idDlgItem

Specifies the identifier of the dialog item that will receive the message.

uMsg

Specifies the message to be sent.

wParam

Specifies 16 bits of additional message-dependent information.

lParam

Specifies 32 bits of additional message-dependent information.

Return Value

The return value specifies the result of the message processing and depends on the message sent.

Comments

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

Using SendDlgItemMessage is identical to retrieving a handle of the given control and calling the SendMessage function.

See Also

PostMessage, SendMessage