Called before Internet Explorer or MSHTML displays its menus and toolbars.
virtual HRESULT OnShowUI(
   DWORD dwID,
   LPOLEINPLACEACTIVEOBJECT pActiveObject,
   LPOLECOMMANDTARGET pCommandTarget,
   LPOLEINPLACEFRAME pFrame,
   LPOLEINPLACEUIWINDOW pDoc 
);
Parameters
- dwID 
 Reserved for future use.
- pActiveObject 
 IOleInPlaceActiveObject interface of the currently active object.
- pCommandTarget 
 IOleCommandTarget interface of the object.
- pFrame 
 IOleInPlaceFrame interface of the object. This is needed for menus and toolbars.
- pDoc 
 IOleInPlaceUIWindow interface for the object. This is needed for toolbars.
Return Value
See IDocHostUIHandler::ShowUI in the Windows SDK for a list of values.
Remarks
Override OnShowUI to react to the ShowUI notification from the Microsoft Web Browser control. See IDocHostUIHandler::ShowUI in the Windows SDK for more information.
Requirements
Header: afxhtml.h