用这个API函数
CWnd::GetWindowText
它有两个版本如下:
int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const;
void GetWindowText( CString& rString ) const;
具体的实例就不写了,很简单啊,只要申请一个缓冲区用于存放返回的窗口标题字符串即可啊.
CWnd::GetWindowText
它有两个版本如下:
int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const;
void GetWindowText( CString& rString ) const;
具体的实例就不写了,很简单啊,只要申请一个缓冲区用于存放返回的窗口标题字符串即可啊.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货