CWindow::GetWindowText

检索窗口的文本。

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

备注

在参见 Windows SDK的 GetWindowText

此方法的第二个版本。BSTR您可以存储该文本。 如果文本成功复制,则返回值是 TRUE;否则,返回值是 FALSE

要求

Header: atlwin.h

请参见

参考

CWindow选件类

CWindow::GetWindowTextLength

CWindow::SetWindowText