ICustomDoc::SetUIHandler Method Home
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.
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View