CWnd::SetWindowText

Call this member function to set the window's title to the specified text. If the window is a control, the text within the control is set. This function causes a WM_SETTEXT message to be sent to this window.

Syntax

void SetWindowText( LPCTSTR lpszString );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::GetWindowText