public virtual int ShowUI(DOCHOSTUITYPE dwID, IOleInPlaceActiveObject pActiveObject, IOleCommandTarget pCommandTarget, IOleInPlaceFrame pFrame, IOleInPlaceUIWindow pDoc)
 {
     // Host did not display any UI. MSHTML will display its UI.
     return(HRESULT.S_FALSE);
 }
 /// <summary>
 /// Called by MSHTML to enable the host to replace MSHTML menus and toolbars
 /// </summary>
 /// <param name="dwID">DWORD that receives a DOCHOSTUITYPE value indicating the type of user interface (UI)</param>
 /// <param name="pActiveObject">Pointer to an IOleInPlaceActiveObject interface for the active object</param>
 /// <param name="pCommandTarget">Pointer to an IOleCommandTarget interface for the object</param>
 /// <param name="pFrame">Pointer to an IOleInPlaceFrame interface for the object. Menus and toolbars must use this parameter</param>
 /// <param name="pDoc">Pointer to an IOleInPlaceUIWindow interface for the object. Toolbars must use this parameter</param>
 /// <returns>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</returns>
 int IDocHostUIHandler2.ShowUI(DOCHOSTUITYPE dwID, IOleInPlaceActiveObject pActiveObject, IOleCommandTarget pCommandTarget, IOleInPlaceFrame pFrame, IOleInPlaceUIWindow pDoc)
 {
     // Host did not display any UI. MSHTML will display its UI.
     return HRESULT.S_FALSE;
 }
        public int ShowUI(DOCHOSTUITYPE dwID, IOleInPlaceActiveObject pActiveObject, IOleCommandTarget pCommandTarget, IOleInPlaceFrame pFrame, IOleInPlaceUIWindow pDoc)
        {
            // log access to method
            LOG("IDocHostUIHandler", "ShowUI");

            return docHostUIHandler.ShowUI(dwID, pActiveObject, pCommandTarget, pFrame, pDoc);
        }