This documentation is archived and is not being maintained.

CWnd::GetWindowTextLength

Returns the length of the CWnd object caption title.

int GetWindowTextLength( ) const;

Return Value

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

Remarks

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.

Example

See the example for CWnd::SetWindowText.

See Also

CWnd Overview | Class Members | Hierarchy Chart | GetWindowTextLength | WM_GETTEXTLENGTH | CWnd::GetWindowText

Show: