다음을 통해 공유


COleControl::GetText

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

BSTR GetText( );

Return Value

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.

Remarks

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.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::InternalGetText

COleControl::SetText

Other Resources

COleControl Members