public virtual int ActivateMe(System.Design.NativeMethods.IOleDocumentView pViewToActivate) { if (pViewToActivate == null) { return -2147024809; } System.Design.NativeMethods.COMRECT rect = new System.Design.NativeMethods.COMRECT(); System.Design.NativeMethods.GetClientRect(this.parentControl.Handle, rect); this.tridentView = pViewToActivate; this.tridentView.SetInPlaceSite(this); this.tridentView.UIActivate(1); this.tridentView.SetRect(rect); this.tridentView.Show(1); return 0; }
public virtual int ActivateMe(System.Design.NativeMethods.IOleDocumentView pViewToActivate) { if (pViewToActivate == null) { return(-2147024809); } System.Design.NativeMethods.COMRECT rect = new System.Design.NativeMethods.COMRECT(); System.Design.NativeMethods.GetClientRect(this.parentControl.Handle, rect); this.tridentView = pViewToActivate; this.tridentView.SetInPlaceSite(this); this.tridentView.UIActivate(1); this.tridentView.SetRect(rect); this.tridentView.Show(1); return(0); }