Share via


COleControl::OnGetDisplayString

Called by the framework to obtain a string that represents the current value of the property identified by dispid.

virtual BOOL OnGetDisplayString( 
   DISPID dispid, 
   CString& strValue  
);

Parameters

  • dispid
    The dispatch ID of a property of the control.

  • strValue
    A reference to a CString object through which a string will be returned.

Return Value

Nonzero if a string has been returned in strValue; otherwise 0.

Remarks

Override this function if your control has a property whose value cannot be directly converted to a string and you want the property's value to be displayed in a container-supplied property browser.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::OnMapPropertyToPage