Sets the IDocHostUIHandler interface for MSHTML.
Syntax
HRESULT SetUIHandler(
IDocHostUIHandler *pUIHandler
);
Parameters
- pUIHandler
-
[in] A pointer to the host's IDocHostUIHandler interface.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
MSHTML releases its previous IDocHostUIHandler interface (if one is present) and calls the pUIHandler AddRef method.
Note When you call
ICustomDoc::SetUIHandler,
MSHTML also uses your implementation of the
IOleCommandTarget interface to handle commands, such as
Save As. If you do not handle the call to
Exec,
MSHTML uses its own handler.