Export (0) Print
Expand All
MFC
Expand Minimize
This topic has not yet been rated - Rate this topic

CWnd::GetWindowTextLength

Returns the length of the CWnd object caption title.

int GetWindowTextLength( ) const;

Specifies the text length in characters, not including any null-termination character. The value is 0 if no such text exists.

If CWnd is a control, the GetWindowTextLength member function returns the length of the text within the control instead of the caption.

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

See the example for CWnd::SetWindowText.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.