CEditView::GetBufferLength
Call this member function to obtain the number of characters currently in the edit control's buffer, not including the null terminator.
UINT GetBufferLength( ) const;
Return Value
The length of the string in the buffer.
Requirements
Header: afxext.h