COleControl::GetText

BSTR GetText( );

Return Value

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

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

Remarks

This function implements the Get function of the stock Text or Caption property. 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.

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::InternalGetText, COleControl::SetText