protected virtual void OnParentResize(object src, EventArgs e) { if (this.tridentView != null) { System.Design.NativeMethods.COMRECT rect = new System.Design.NativeMethods.COMRECT(); System.Design.NativeMethods.GetClientRect(this.parentControl.Handle, rect); this.tridentView.SetRect(rect); } }
protected void ActivateDocument() { try { System.Design.NativeMethods.COMRECT rect = new System.Design.NativeMethods.COMRECT(); System.Design.NativeMethods.GetClientRect(this.parentControl.Handle, rect); this.tridentOleObject.DoVerb(-4, IntPtr.Zero, this, 0, this.parentControl.Handle, rect); } catch (Exception) { } }
protected void ActivateDocument() { try { System.Design.NativeMethods.COMRECT rect = new System.Design.NativeMethods.COMRECT(); System.Design.NativeMethods.GetClientRect(this.parentControl.Handle, rect); this.tridentOleObject.DoVerb(-4, IntPtr.Zero, this, 0, this.parentControl.Handle, rect); } catch (Exception) { } }
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); }
protected virtual void OnParentResize(object src, EventArgs e) { if (this.tridentView != null) { System.Design.NativeMethods.COMRECT rect = new System.Design.NativeMethods.COMRECT(); System.Design.NativeMethods.GetClientRect(this.parentControl.Handle, rect); this.tridentView.SetRect(rect); } }
public virtual void SetBorderSpace(System.Design.NativeMethods.COMRECT pborderwidths) { throw new COMException(string.Empty, -2147467263); }
public virtual int ResizeBorder(System.Design.NativeMethods.COMRECT rect, System.Design.NativeMethods.IOleInPlaceUIWindow doc, bool fFrameWindow) { return(-2147467263); }
public virtual int OnPosRectChange(System.Design.NativeMethods.COMRECT lprcPosRect) { return(0); }
public virtual void GetWindowContext(out System.Design.NativeMethods.IOleInPlaceFrame ppFrame, out System.Design.NativeMethods.IOleInPlaceUIWindow ppDoc, System.Design.NativeMethods.COMRECT lprcPosRect, System.Design.NativeMethods.COMRECT lprcClipRect, System.Design.NativeMethods.tagOIFI lpFrameInfo) { ppFrame = this; ppDoc = null; System.Design.NativeMethods.GetClientRect(this.parentControl.Handle, lprcPosRect); System.Design.NativeMethods.GetClientRect(this.parentControl.Handle, lprcClipRect); lpFrameInfo.cb = Marshal.SizeOf(typeof(System.Design.NativeMethods.tagOIFI)); lpFrameInfo.fMDIApp = 0; lpFrameInfo.hwndFrame = this.parentControl.Handle; lpFrameInfo.hAccel = IntPtr.Zero; lpFrameInfo.cAccelEntries = 0; }
public virtual void GetBorder(System.Design.NativeMethods.COMRECT lprectBorder) { throw new COMException(string.Empty, -2147467263); }
public static extern bool RedrawWindow(IntPtr hwnd, System.Design.NativeMethods.COMRECT rcUpdate, IntPtr hrgnUpdate, int flags);