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


COleControl::GetText

Implements the Get function of the stock Text or Caption property.

BSTR GetText( );

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

The current value of the control text string or a zero-length string if no string is present.

ПримечаниеПримечание.

For more information on the BSTR data type, see Data Types in the Macros and Globals section.

Заметки

Note that the caller of this function must call SysFreeString on the string returned in order to free the resource. Within the implementation of the control, use InternalGetText to access the control's stock Text or Caption property.

Требования

Header: afxctl.h

См. также

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

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::InternalGetText

COleControl::SetText