This topic has not yet been rated - Rate this topic

ICustomDoc::SetUIHandler Method

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ