COleControl::OnGetPredefinedValue

Called by the framework to obtain the value corresponding to one of the predefined strings previously returned by an override of COleControl::OnGetPredefinedStrings.

virtual BOOL OnGetPredefinedValue( 
   DISPID dispid, 
   DWORD dwCookie, 
   VARIANT* lpvarOut  
);

Parameters

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

  • dwCookie
    A cookie value previously returned by an override of COleControl::OnGetPredefinedStrings.

  • lpvarOut
    Pointer to a VARIANT structure through which a property value will be returned.

Return Value

Nonzero if a value has been returned in lpvarOut; otherwise 0.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::OnGetPredefinedStrings

COleControl::OnGetDisplayString