34 instantiations of COMRECT
System.Windows.Forms (34)
winforms\Managed\System\WinForms\AxHost.cs (4)
1548GetInPlaceObject().SetObjectRects(FillInRect(new NativeMethods.COMRECT(), bounds), GetClipRect(new NativeMethods.COMRECT())); 2470GetOleObject().DoVerb(verb, IntPtr.Zero, oleSite, -1, parent != null ? parent.Handle : IntPtr.Zero, FillInRect(new NativeMethods.COMRECT(), Bounds)); 4337host.GetInPlaceObject().SetObjectRects(lprcPosRect, host.GetClipRect(new NativeMethods.COMRECT()));
winforms\Managed\System\WinForms\Control.cs (3)
17077NativeMethods.COMRECT posRect = new NativeMethods.COMRECT(); 17078NativeMethods.COMRECT clipRect = new NativeMethods.COMRECT(); 18630NativeMethods.COMRECT rc = new NativeMethods.COMRECT();
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4057return new COMRECT(x, y, x + width, y + height);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (21)
291lastHResult = SafeNativeMethods.DrawThemeBackground(new HandleRef(this, hTheme.NativeHandle), hdc, part, state, new NativeMethods.COMRECT(bounds), null); 295lastHResult = SafeNativeMethods.DrawThemeBackground(new HandleRef(this, Handle), hdc, part, state, new NativeMethods.COMRECT(bounds), null); 325lastHResult = SafeNativeMethods.DrawThemeBackground(new HandleRef(this, hTheme.NativeHandle), hdc, part, state, new NativeMethods.COMRECT(bounds), new NativeMethods.COMRECT(clipRectangle)); 329lastHResult = SafeNativeMethods.DrawThemeBackground(new HandleRef(this, Handle), hdc, part, state, new NativeMethods.COMRECT(bounds), new NativeMethods.COMRECT(clipRectangle)); 357NativeMethods.COMRECT rect = new NativeMethods.COMRECT(); 361lastHResult = SafeNativeMethods.DrawThemeEdge( new HandleRef( this, Handle ), hdc, part, state, new NativeMethods.COMRECT( bounds ), (int) style, (int) edges | (int) effects | EdgeAdjust, rect ); 452lastHResult = SafeNativeMethods.DrawThemeParentBackground( new HandleRef( this, childControl.Handle ), hdc, new NativeMethods.COMRECT( bounds ) ); 497lastHResult = SafeNativeMethods.DrawThemeText( new HandleRef( this, Handle ), hdc, part, state, textToDraw, textToDraw.Length, (int) flags, disableFlag, new NativeMethods.COMRECT( bounds ) ); 516NativeMethods.COMRECT rect = new NativeMethods.COMRECT(); 520lastHResult = SafeNativeMethods.GetThemeBackgroundContentRect( new HandleRef( this, Handle ), hdc, part, state, new NativeMethods.COMRECT( bounds ), rect ); 540NativeMethods.COMRECT rect = new NativeMethods.COMRECT(); 544lastHResult = SafeNativeMethods.GetThemeBackgroundExtent( new HandleRef( this, Handle ), hdc, part, state, new NativeMethods.COMRECT( contentBounds ), rect ); 572lastHResult = SafeNativeMethods.GetThemeBackgroundRegion( new HandleRef( this, Handle ), hdc, part, state, new NativeMethods.COMRECT( bounds ), ref hRegion ); 789lastHResult = SafeNativeMethods.GetThemePartSize( new HandleRef( this, Handle ), hdc, part, state, new NativeMethods.COMRECT( bounds ), type, size ); 874NativeMethods.COMRECT rect = new NativeMethods.COMRECT(); 899NativeMethods.COMRECT rect = new NativeMethods.COMRECT(); 903lastHResult = SafeNativeMethods.GetThemeTextExtent( new HandleRef( this, Handle ), hdc, part, state, textToDraw, textToDraw.Length, (int) flags, new NativeMethods.COMRECT( bounds ), rect ); 948lastHResult = SafeNativeMethods.HitTestThemeBackground( new HandleRef( this, Handle ), hdc, part, state, (int) options, new NativeMethods.COMRECT( backgroundRectangle ), NativeMethods.NullHandleRef, point, ref htCode ); 991lastHResult = SafeNativeMethods.HitTestThemeBackground( new HandleRef( this, Handle ), hdc, part, state, (int) options, new NativeMethods.COMRECT( backgroundRectangle ), new HandleRef( this, hRgn ), point, ref htCode );
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
258this.AXInPlaceObject.SetObjectRects(new NativeMethods.COMRECT(new Rectangle(0, 0, width, height)), WebBrowserHelper.GetClipRect()); 745new NativeMethods.COMRECT(this.Bounds));
winforms\Managed\System\WinForms\WebBrowserHelper.cs (1)
166return new NativeMethods.COMRECT(new Rectangle(0, 0, 32000, 32000));
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (2)
231this.OnActiveXRectChange(new NativeMethods.COMRECT(this.Host.Bounds)); 287this.OnActiveXRectChange(new NativeMethods.COMRECT(this.Host.Bounds));
83 references to COMRECT
System.Windows.Forms (83)
winforms\Managed\System\WinForms\AxHost.cs (10)
1443private NativeMethods.COMRECT GetClipRect(NativeMethods.COMRECT clipRect) { 4267NativeMethods.COMRECT lprcPosRect, NativeMethods.COMRECT lprcClipRect, NativeMethods.tagOIFI lpFrameInfo) { 4324int UnsafeNativeMethods.IOleInPlaceSite.OnPosRectChange(NativeMethods.COMRECT lprcPosRect) { 4613private static NativeMethods.COMRECT FillInRect(NativeMethods.COMRECT dest, Rectangle source) { 5975int UnsafeNativeMethods.IOleInPlaceFrame.GetBorder(NativeMethods.COMRECT lprectBorder) { 5984int UnsafeNativeMethods.IOleInPlaceFrame.RequestBorderSpace(NativeMethods.COMRECT pborderwidths) { 5993int UnsafeNativeMethods.IOleInPlaceFrame.SetBorderSpace(NativeMethods.COMRECT pborderwidths) {
winforms\Managed\System\WinForms\Control.cs (18)
15379void UnsafeNativeMethods.IOleInPlaceActiveObject.ResizeBorder(NativeMethods.COMRECT prcBorder, UnsafeNativeMethods.IOleInPlaceUIWindow pUIWindow, bool fFrameWindow) { 15439void UnsafeNativeMethods.IOleInPlaceObject.SetObjectRects(NativeMethods.COMRECT lprcPosRect, NativeMethods.COMRECT lprcClipRect) { 15537int UnsafeNativeMethods.IOleObject.DoVerb(int iVerb, IntPtr lpmsg, UnsafeNativeMethods.IOleClientSite pActiveSite, int lindex, IntPtr hwndParent, NativeMethods.COMRECT lprcPosRect) { 15939IntPtr hdcTargetDev, IntPtr hdcDraw, NativeMethods.COMRECT lprcBounds, NativeMethods.COMRECT lprcWBounds, 16014IntPtr hdcTargetDev, IntPtr hdcDraw, NativeMethods.COMRECT lprcBounds, NativeMethods.COMRECT lprcWBounds, 16297private NativeMethods.COMRECT adjustRect; // temporary rect used during OnPosRectChange && SetObjectRects 16551internal void DoVerb(int iVerb, IntPtr lpmsg, UnsafeNativeMethods.IOleClientSite pActiveSite, int lindex, IntPtr hwndParent, NativeMethods.COMRECT lprcPosRect) { 16647IntPtr hdcTargetDev, IntPtr hdcDraw, NativeMethods.COMRECT prcBounds, NativeMethods.COMRECT lprcWBounds, 17077NativeMethods.COMRECT posRect = new NativeMethods.COMRECT(); 17078NativeMethods.COMRECT clipRect = new NativeMethods.COMRECT(); 18270ioleClientSite.OnPosRectChange(NativeMethods.COMRECT.FromXYWH(bounds.X, bounds.Y, bounds.Width, bounds.Height)); 18320internal void SetObjectRects(NativeMethods.COMRECT lprcPosRect, NativeMethods.COMRECT lprcClipRect) { 18630NativeMethods.COMRECT rc = new NativeMethods.COMRECT();
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4056public static COMRECT FromXYWH(int x, int y, int width, int height) {
winforms\Managed\System\WinForms\SafeNativeMethods.cs (19)
345public static extern bool EnumDisplayMonitors(HandleRef hdc, NativeMethods.COMRECT rcClip, NativeMethods.MonitorEnumProc lpfnEnum, IntPtr dwData); 638public static extern bool RedrawWindow(HandleRef hwnd, NativeMethods.COMRECT rcUpdate, HandleRef hrgnUpdate, int flags); 644public static extern bool InvalidateRect(HandleRef hWnd, NativeMethods.COMRECT rect, bool erase); 656public static extern int ScrollWindowEx(HandleRef hWnd, int nXAmount, int nYAmount, NativeMethods.COMRECT rectScrollRegion, ref NativeMethods.RECT rectClip, HandleRef hrgnUpdate, ref NativeMethods.RECT prcUpdate, int flags); 772public static extern int DrawThemeBackground(HandleRef hTheme, HandleRef hdc, int partId, int stateId, [In] NativeMethods.COMRECT pRect, [In] NativeMethods.COMRECT pClipRect); 775public static extern int DrawThemeEdge(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] NativeMethods.COMRECT pDestRect, int uEdge, int uFlags, [Out] NativeMethods.COMRECT pContentRect); 778public static extern int DrawThemeParentBackground(HandleRef hwnd, HandleRef hdc, [In] NativeMethods.COMRECT prc); 781public static extern int DrawThemeText(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [MarshalAs(UnmanagedType.LPWStr)] string pszText, int iCharCount, int dwTextFlags, int dwTextFlags2, [In] NativeMethods.COMRECT pRect); 784public static extern int GetThemeBackgroundContentRect(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] NativeMethods.COMRECT pBoundingRect, [Out] NativeMethods.COMRECT pContentRect); 787public static extern int GetThemeBackgroundExtent(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] NativeMethods.COMRECT pContentRect, [Out] NativeMethods.COMRECT pExtentRect); 790public static extern int GetThemeBackgroundRegion(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] NativeMethods.COMRECT pRect, ref IntPtr pRegion); 811public static extern int GetThemePartSize(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] NativeMethods.COMRECT prc, System.Windows.Forms.VisualStyles.ThemeSizeType eSize, [Out] NativeMethods.SIZE psz); 826public static extern int GetThemeTextExtent(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [MarshalAs(UnmanagedType.LPWStr)] string pszText, int iCharCount, int dwTextFlags, [In] NativeMethods.COMRECT pBoundingRect, [Out] NativeMethods.COMRECT pExtentRect); 832 public static extern int HitTestThemeBackground(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, int dwOptions, [In] NativeMethods.COMRECT pRect, HandleRef hrgn, [In] NativeMethods.POINTSTRUCT ptTest, ref int pwHitTestCode);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (20)
1517public static extern bool ClipCursor(NativeMethods.COMRECT rcClip); 1884NativeMethods.COMRECT lprcPosRect, 1886NativeMethods.COMRECT lprcClipRect, 1910NativeMethods.COMRECT lprcPosRect); 2049NativeMethods.COMRECT lprectBorder); 2054NativeMethods.COMRECT pborderwidths); 2059NativeMethods.COMRECT pborderwidths); 2173NativeMethods.COMRECT rect, 5540NativeMethods.COMRECT lprectBorder); 5546NativeMethods.COMRECT pborderwidths); 5552NativeMethods.COMRECT pborderwidths); 5595NativeMethods.COMRECT prcBorder, 5642NativeMethods.COMRECT lprcPosRect, 5644NativeMethods.COMRECT lprcClipRect); 5720NativeMethods.COMRECT lprcPosRect); 5849NativeMethods.COMRECT lprcPosRect); 5977NativeMethods.COMRECT lprcBounds, 5979NativeMethods.COMRECT lprcWBounds, 6054NativeMethods.COMRECT lprcBounds, 6056NativeMethods.COMRECT lprcWBounds,
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (5)
357NativeMethods.COMRECT rect = new NativeMethods.COMRECT(); 516NativeMethods.COMRECT rect = new NativeMethods.COMRECT(); 540NativeMethods.COMRECT rect = new NativeMethods.COMRECT(); 874NativeMethods.COMRECT rect = new NativeMethods.COMRECT(); 899NativeMethods.COMRECT rect = new NativeMethods.COMRECT();
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1803int UnsafeNativeMethods.IDocHostUIHandler.ResizeBorder(NativeMethods.COMRECT rect, UnsafeNativeMethods.IOleInPlaceUIWindow doc, bool fFrameWindow) {
winforms\Managed\System\WinForms\WebBrowserContainer.cs (3)
80int UnsafeNativeMethods.IOleInPlaceFrame.GetBorder(NativeMethods.COMRECT lprectBorder) { 84int UnsafeNativeMethods.IOleInPlaceFrame.RequestBorderSpace(NativeMethods.COMRECT pborderwidths) { 88int UnsafeNativeMethods.IOleInPlaceFrame.SetBorderSpace(NativeMethods.COMRECT pborderwidths) {
winforms\Managed\System\WinForms\WebBrowserHelper.cs (1)
165internal static NativeMethods.COMRECT GetClipRect() {
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (5)
302NativeMethods.COMRECT lprcPosRect, NativeMethods.COMRECT lprcClipRect, NativeMethods.tagOIFI lpFrameInfo) { 364int UnsafeNativeMethods.IOleInPlaceSite.OnPosRectChange(NativeMethods.COMRECT lprcPosRect) { 491private int OnActiveXRectChange(NativeMethods.COMRECT lprcPosRect) { 493NativeMethods.COMRECT.FromXYWH(0, 0, lprcPosRect.right - lprcPosRect.left, lprcPosRect.bottom - lprcPosRect.top),