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::GetWindowText
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int GetWindowText( LPSTR lpString, int nMaxCount ) const;
 
  Parameter   Description
 
  <lpString>  Points to the buffer that is to receive the copied string of
              the Window's title.
 
  <nMaxCount> Specifies the maximum number of characters to be copied to
              the buffer. If the string is longer than the number of
              characters specified in <nMaxCount>, it is truncated.
 
  Remarks
 
  Copies the CWnd caption title (if it has one) into the buffer pointed to
  by <lpString>. If the CWnd object is a control, the GetWindowText member
  function copies the text within the control instead of copying the
  caption.
 
  Return Value
 
  Specifies the length of the copied string. It is 0 if CWnd has no
  caption or if the caption is empty.
 
  See Also
 
  CWnd::SetWindowText, WM_GETTEXT
 
 
                                     -♦-