Condividi tramite


CWindow::GetWindowText

Recupera il testo della finestra.

int GetWindowText(
   LPTSTR lpszStringBuf,
   int nMaxCount 
) const throw();
BOOL GetWindowText(
   BSTR& bstrText 
) throw();

Note

Vedere GetWindowText in Windows SDK.

La seconda versione di questo metodo consente di inserire testo in BSTR.Se il testo venga copiato, il valore restituito è TRUE; in caso contrario, il valore restituito è FALSE.

Requisiti

Header: atlwin.h

Vedere anche

Riferimenti

Classe di CWindow

CWindow::GetWindowTextLength

CWindow::SetWindowText