Поделиться через


CRichEditView::GetTextLengthEx

Call this member function to calculate the length of the text in this CRichEditView object.

long GetTextLengthEx(
   DWORD dwFlags,
   UINT uCodePage = -1 
) const;

Параметры

  • dwFlags
    Value specifying the method to be used in determining the text length. This member can be one or more of the values listed in the flags member of GETTEXTLENGTHEX described in the Windows SDK.

  • uCodePage
    Code page for translation (CP_ACP for ANSI Code Page, 1200 for Unicode).

Возвращаемое значение

The number of characters or bytes in the edit control. If incompatible flags were set in dwFlags, this member function returns E_INVALIDARG.

Заметки

GetTextLengthEx provides additional ways of determining the length of the text. It supports the Rich Edit 2.0 functionality. For more information, see About Rich Edit Controls in the Windows SDK.

Требования

Header: afxrich.h

См. также

Основные понятия

CRichEditView Class

CRichEditView Members

Hierarchy Chart

CRichEditCtrl::GetTextLengthEx

CRichEditCtrl::GetTextLength