CComDesignerToolbox::ValidateToolboxObject

STDMETHOD ValidateToolboxObject (IDataObject *pDataObject, TOOLBOXITEM **pptbItemRet);

Return Value

S_OK if the item is supported in the designer's toolbox, or E_FALSE if an error occurred.

Parameters

pDataObject

Pointer to an IDataObject describing a toolbox item.

pptbItemRet

Indirect pointer to the type of the returned object.

Remarks

ValidateToolboxObject compares an item of type IDataObject with the toolbox items supported by the designer. If the designer supports the item, the method returns a pointer to the type of the item in pptbItemRet. If the designer does not support the item, the method returns E_FALSE.