Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWnd::SetWindowText
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void SetWindowText( const char FAR* lpString );
 
  Parameter   Description
 
  <lpString>  Points to a CString or null-terminated string.
 
  Remarks
 
  Sets the caption title (if one exists) to the specified text. If the
  CWnd is a control, the SetWindowText member function sets the text
  within the control instead of within the caption. This function sends a
  WM_SETTEXT message to CWnd.
 
  See Also
 
  CWnd::GetWindowText, ::SetWindowText
 
 
                                     -♦-