DWORD SendDlgItemMessage(hDlg,nIDDlgItem,wMsg,wParam,lParam)
This function sends a message to the control specified by the nIDDlgItem parameter within the dialog box specified by the hDlg parameter. The SendDlgItemMessage function does not return until the message has been processed.
Parameter | Type/Description |
hDlg | HWND Identifies the dialog box that contains the control. | |
nIDDlgItem | int Specifies the integer identifier of the dialog item that is to receive the message. | |
wMsg | WORD Specifies the message value. | |
wParam | WORD Specifies additional message information. | |
lParam | DWORD Specifies additional message information. |
The return value specifies the outcome of the function. It is the value returned by the control's window function, or zero if the control identifier is not valid.
Using SendDlgItemMessage is identical to obtaining a handle to the given control and calling the SendMessage function.