다음을 통해 공유


CWindow::GetWindowText

윈도우의 텍스트를 검색합니다.

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

설명

참조 GetWindowText 에 있는 Windows SDK.

이 메서드의 두 번째 버전의 텍스트를 저장할 수 있는 BSTR.텍스트를 복사 하는 경우 반환 값인 TRUE. 그렇지 않으면 반환 값이 거짓.

요구 사항

헤더: atlwin.h

참고 항목

참조

CWindow 클래스

CWindow::GetWindowTextLength

CWindow::SetWindowText