Partager via


COleControl::OnMapPropertyToPage

Called by the framework to obtain the class ID of a property page that implements editing of the specified property.

virtual BOOL OnMapPropertyToPage(
   DISPID dispid,
   LPCLSID lpclsid,
   BOOL* pbPageOptional 
);

Parameters

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

  • lpclsid
    Pointer to a CLSID structure through which a class ID will be returned.

  • pbPageOptional
    Returns an indicator of whether use of the specified property page is optional.

Return Value

Nonzero if a class ID has been returned in lpclsid; otherwise 0.

Remarks

Override this function to provide a way to invoke your control's property pages from the container's property browser.

Requirements

Header: afxctl.h

See Also

Concepts

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::OnGetDisplayString