Delen via


CHtmlView::OnFilterDataObject

Called on the host by Internet Explorer or MSHTML to allow the host to replace Internet Explorer or MSHTML's data object.

virtual HRESULT OnFilterDataObject( 
   LPDATAOBJECT pDataObject, 
   LPDATAOBJECT* ppDataObject  
);

Parameters

  • pDataObject
    Address of the IDataObject interface supplied by Internet Explorer or MSHTML.

  • ppDataObject
    Address that receives the IDataObject interface pointer supplied by the host. The contents of this parameter should always be initialized to NULL, even if the method fails.

Return Value

S_OK if the data object is replaced, S_FALSE if the data object is not replaced, or an OLE-defined error code if an error occurs.

Remarks

Override OnFilterDataObject to react to the FilterDataObject notification from the Microsoft Web Browser control. See IDocHostUIHandler::FilterDataObject in the Windows SDK for more information.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart