EDN首页   博客首页

日志档案

发表于 2007-3-11 23:16:41

2

标签: MFC  

CWnd::GetWindowText的MSDN说明-还是MSDN好哇

 

CWnd::GetWindowText

int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const;

void GetWindowText( CString& rString ) const;

Return Value

Specifies the length, in bytes, of the copied string, not including the terminating null character. It is 0 if CWnd has no caption or if the caption is empty.

Parameters

lpszStringBuf

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.

rString

A CString object that is to receive the copied string of the window’s title.

Remarks

Copies the CWnd caption title (if it has one) into the buffer pointed to by lpszStringBuf or into the destination string rString. If the CWnd object is a control, the GetWindowText member function copies the text within the control instead of copying the caption.

This member function causes the WM_GETTEXT message to be sent to the CWnd object.

系统分类: 软件开发   |   用户分类: C++/MFC应用---很有用   |   来源: 原创   |   【推荐给朋友】   |   【添加到收藏夹】

    阅读(750)    回复(0)  

投一票您将和博主都有获奖机会!