Click to return to the Reusing Browser Technology home page    
IDocHostUIHandler::ShowCo...     IDocHostUIHandler::Transl...     IDocHostUIHandler Interfa...    
Web Workshop  |  Reusing Browser Technology

IDocHostUIHandler::ShowUI Method


Allows the host to replace the MSHTML menus and toolbars.

Syntax

HRESULT ShowUI( 
    DWORD dwID,
    IOleInPlaceActiveObject FAR *pActiveObject,
    IOleCommandTarget FAR *pCommandTarget,
    IOleInPlaceFrame FAR *pFrame,
    IOleInPlaceUIWindow FAR *pDoc
);

Parameters

dwID
DOCHOSTUITYPE value that indicates the type of user interface.
pActiveObject
Address of an IOleInPlaceActiveObject interface for the active object.
pCommandTarget
Address of an IOleCommandTarget interface for the object.
pFrame
Address of an IOleInPlaceFrame interface for the object. Menus and toolbars must use this parameter.
pDoc
Address of an IOleInPlaceUIWindow interface for the object. Toolbars must use this parameter.

Return Value

Returns one of the following values:

S_OK Host displayed its own UI. MSHTML will not display its UI.
S_FALSE Host did not display its own UI. MSHTML will display its UI.
DOCHOST_E_UNKNOWN Host did not recognize the UI identifier. MSHTML will either try an alternative identifier for compatibility with a previous version or display its own UI.

Remarks

If the host uses any of the interfaces handed to it as part of this function, the host should call the interface's AddRef method to save the interface for later use. If the host calls the interface's AddRef method, the host must also call the interface's Release method when the interface is no longer required.

A host can disable modeless UI on MSHTML by calling IOleCommandTarget::Exec with IDM_DISABLEMODELESS and IDM_ENABLEMODELESS.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.