SetDlgItemText

2.x

  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.

Parameters

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.

Return Value

This function does not return a value.

Comments

The SetDlgItemText function sends a WM_SETTEXT message to the given control.

See Also

GetDlgItemText, SetDlgItemInt