/// <summary> /// </summary> internal void ParentResize() { if (interopDocumentView != null) { Interop.RECT r = EditorRect; interopDocumentView.SetRect(r); } }
/// <summary> /// </summary> private void OnParentResize(object src, EventArgs e) { if (tridentView != null) { Interop.COMRECT r = new Interop.COMRECT(); Interop.GetClientRect(hostControl.Handle, r); tridentView.SetRect(r); } }
public int ActivateMe(Interop.IOleDocumentView pViewToActivate) { if (pViewToActivate == null) { return(Interop.E_INVALIDARG); } Interop.RECT r = EditorRect; interopDocumentView = pViewToActivate; interopDocumentView.SetInPlaceSite(this); interopDocumentView.UIActivate(WithUI ? 1 : 0); interopDocumentView.SetRect(r); interopDocumentView.Show(1); return(Interop.S_OK); }
/////////////////////////////////////////////////////////////////////////// // Interop.IOleDocumentSite Implementation public int ActivateMe(Interop.IOleDocumentView pViewToActivate) { Debug.Assert(pViewToActivate != null, "Expected the view to be non-null"); if (pViewToActivate == null) { return(Interop.E_INVALIDARG); } Interop.COMRECT r = new Interop.COMRECT(); Interop.GetClientRect(hostControl.Handle, r); tridentView = pViewToActivate; tridentView.SetInPlaceSite((Interop.IOleInPlaceSite) this); tridentView.UIActivate(1); tridentView.SetRect(r); tridentView.Show(1); return(Interop.S_OK); }