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