void SetDlgItemText(hwndDlg, idControl, lpsz) | |||||
HWND hwndDlg; | /* handle of dialog box | */ | |||
int idControl; | /* identifier of control | */ | |||
LPCSTR lpsz; | /* text to set, */ |
The SetDlgItemText function sets the title or text of a control in a dialog box.
hwndDlg
Identifies the dialog box that contains the control.
idControl
Identifies the control whose text is to be set.
lpsz
Points to the null-terminated string that contains the text to be copied to the control.
This function does not return a value.
The SetDlgItemText function sends a WM_SETTEXT message to the given control.