Partager via


COleControlSite::GetWindowText

Retrieves the current text of the control.

virtual void GetWindowText(
   CString& str 
) const;

Parameters

  • str
    A reference to a CString object that contains the current text of the control.

Remarks

If the control supports the Caption stock property, this value is returned. If the Caption stock property is not supported, the value for the Text property is returned.

Requirements

Header: afxocc.h

See Also

Reference

COleControlSite Class

Hierarchy Chart

Other Resources

COleControlSite Members