Share via


CWnd::SetDlgItemText

voidSetDlgItemText(intnID**,LPCTSTRlpszString);**

Parameters

nID

Identifies the control whose text is to be set.

lpszString

Points to a CString object or null-terminated string that contains the text to be copied to the control.

Remarks

Sets the caption or text of a control owned by a window or dialog box.

SetDlgItemText sends a message to the given control.

CWnd OverviewClass MembersHierarchy Chart

See Also   , , CWnd::GetDlgItemText