public virtual void SetActiveObject(NativeMethods.IOleInPlaceActiveObject pActiveObject, string pszObjName) { Debug.WriteLineIf(StyleBuilder.StyleBuilderSwitch.TraceVerbose, "CTridentSite: IOleInPlaceFrame::SetActiveObject"); // NOTE, nikhilko, 7/99: Don't return E_NOTIMPL. Somehow doing nothing and returning S_OK // fixes trident hosting in Win2000. }
public void CloseHtml() { this.hostControl.Resize -= new EventHandler(this.HostControl_Resize); try { if (this.propertyNotifySinkCookie != null) { this.propertyNotifySinkCookie.Disconnect(); this.propertyNotifySinkCookie = null; } if (this.document != null) { this.documentView = null; this.document = null; this.commandTarget = null; this.activeObject = null; if (adviseSinkCookie != 0) { this.oleObject.Unadvise(adviseSinkCookie); this.adviseSinkCookie = 0; } this.oleObject.Close(NativeMethods.OLECLOSE_NOSAVE); this.oleObject.SetClientSite(null); this.oleObject = null; } } catch (Exception exception) { Debug.Fail(exception.ToString()); } }
int NativeMethods.IDocHostUIHandler.ShowUI(int dwID, NativeMethods.IOleInPlaceActiveObject activeObject, NativeMethods.IOleCommandTarget commandTarget, NativeMethods.IOleInPlaceFrame frame, NativeMethods.IOleInPlaceUIWindow doc) { return(NativeMethods.S_OK); }
void NativeMethods.IOleInPlaceFrame.SetActiveObject(NativeMethods.IOleInPlaceActiveObject pActiveObject, string pszObjName) { this.activeObject = pActiveObject; }
public virtual int ShowUI(int dwID, NativeMethods.IOleInPlaceActiveObject activeObject, NativeMethods.IOleCommandTarget commandTarget, NativeMethods.IOleInPlaceFrame frame, NativeMethods.IOleInPlaceUIWindow doc) { return(NativeMethods.S_OK); }
public virtual void SetActiveObject(NativeMethods.IOleInPlaceActiveObject pActiveObject, string pszObjName) { // NOTE, nikhilko, 7/99: Don't return E_NOTIMPL. Somehow doing nothing and returning S_OK // fixes trident hosting in Win2000. // throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); }
int NativeMethods.IDocHostUIHandler.ShowUI(int dwID, NativeMethods.IOleInPlaceActiveObject activeObject, NativeMethods.IOleCommandTarget commandTarget, NativeMethods.IOleInPlaceFrame frame, NativeMethods.IOleInPlaceUIWindow doc) { Debug.WriteLineIf(StyleBuilder.StyleBuilderSwitch.TraceVerbose, "CTridentSite: IDocHostUIHandler::ShowUI"); return(NativeMethods.S_OK); }