SetDlgItemText

Syntax

void SetDlgItemText(hDlg,nIDDlgItem,lpString)

This function sets the caption or text of a control in the dialog box specified by the hDlg parameter. The SetDlgItemText function sends a WM_SETTEXT message to the given control.

Parameter Type/Description  

hDlg HWND Identifies the dialog box that contains the control.  
nIDDlgItem int Specifies the control whose text is to be set.  
lpString LPSTR Points to the null-terminated character string that is to be copied to the control.  

Return Value

None.