3 instantiations of HBRUSH
System.Private.Windows.Core (3)
Windows.Win32.HBRUSH.g.cs (3)
41 public static explicit operator HBRUSH(void* value) => new HBRUSH(value); 57 public static explicit operator HBRUSH(IntPtr value) => new HBRUSH((void*)value.ToPointer()); 59 public static explicit operator HBRUSH(UIntPtr value) => new HBRUSH((void*)value.ToPointer());
66 references to HBRUSH
System.Private.Windows.Core (25)
Windows.Win32.HBRUSH.g.cs (14)
25 : IEquatable<HBRUSH> 35 internal static HBRUSH Null => default; 39 public static implicit operator void*(HBRUSH value) => value.Value; 41 public static explicit operator HBRUSH(void* value) => new HBRUSH(value); 43 public static bool operator ==(HBRUSH left, HBRUSH right) => left.Value == right.Value; 45 public static bool operator !=(HBRUSH left, HBRUSH right) => !(left == right); 47 public bool Equals(HBRUSH other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HBRUSH other && this.Equals(other); 55 public static implicit operator IntPtr(HBRUSH value) => new IntPtr(value.Value); 57 public static explicit operator HBRUSH(IntPtr value) => new HBRUSH((void*)value.ToPointer()); 59 public static explicit operator HBRUSH(UIntPtr value) => new HBRUSH((void*)value.ToPointer()); 61 public static implicit operator HGDIOBJ(HBRUSH value) => new HGDIOBJ(value.Value);
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (1)
382 internal static extern winmdroot.Graphics.Gdi.HBRUSH CreateSolidBrush(winmdroot.Foundation.COLORREF color);
Windows.Win32.PInvokeCore.USER32.dll.g.cs (3)
216 internal static winmdroot.Foundation.BOOL DrawIconEx(winmdroot.Graphics.Gdi.HDC hdc, int xLeft, int yTop, winmdroot.UI.WindowsAndMessaging.HICON hIcon, int cxWidth, int cyWidth, uint istepIfAniCur, winmdroot.Graphics.Gdi.HBRUSH hbrFlickerFreeDraw, winmdroot.UI.WindowsAndMessaging.DI_FLAGS diFlags) 224 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Graphics.Gdi.HDC hdc, int xLeft, int yTop, winmdroot.UI.WindowsAndMessaging.HICON hIcon, int cxWidth, int cyWidth, uint istepIfAniCur, winmdroot.Graphics.Gdi.HBRUSH hbrFlickerFreeDraw, winmdroot.UI.WindowsAndMessaging.DI_FLAGS diFlags); 586 internal static extern winmdroot.Graphics.Gdi.HBRUSH GetSysColorBrush(winmdroot.Graphics.Gdi.SYS_COLOR_INDEX nIndex);
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (2)
24public HBRUSH HBRUSH { get; } 38public static implicit operator HBRUSH(in CreateBrushScope scope) => scope.HBRUSH;
Windows\Win32\Graphics\Gdi\HGDIOBJ.cs (2)
11public static explicit operator HBRUSH(HGDIOBJ value) => (HBRUSH)value.Value;
Windows\Win32\PInvokeCore.DrawIconEx.cs (2)
8/// <inheritdoc cref="DrawIconEx(HDC, int, int, HICON, int, int, uint, HBRUSH, DI_FLAGS)"/> 25BOOL result = DrawIconEx(hDC, xLeft, yTop, hIcon.Handle, cxWidth, cyWidth, 0, HBRUSH.Null, diFlags);
Windows\Win32\PInvokeCore.GetSysColorBrush.cs (1)
11public static HBRUSH GetSysColorBrush(Color systemColor)
System.Windows.Forms (20)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3057internal override HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg)
System\Windows\Forms\Control.cs (8)
766internal HBRUSH BackColorBrush 770if (Properties.TryGetValue(s_backBrushProperty, out HBRUSH customBackBrush)) 790HBRUSH backBrush; 4781if (Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush)) 5873internal virtual HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg) 5883return (HBRUSH)PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH); 6675if (Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush)) 7540if (!RecreatingHandle && GetState(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out HBRUSH backBrush))
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
97private static void DrawAndFillEllipse(HDC hdc, HPEN borderPen, HBRUSH fieldBrush, Rectangle bounds)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2001internal override HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
5704HBRUSH halftone = ControlPaint.CreateHalftoneHBRUSH(); 5723HBRUSH halftone = ControlPaint.CreateHalftoneHBRUSH();
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
698HBRUSH halftone = ControlPaint.CreateHalftoneHBRUSH();
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1995internal override HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg)
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
24private HBRUSH _hbrushDither;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1475HBRUSH halftone = ControlPaint.CreateHalftoneHBRUSH();
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
134windowClass.hbrBackground = (HBRUSH)PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
354internal static unsafe HBRUSH CreateHalftoneHBRUSH()
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
492internal override HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg) => default;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DesignerUtils.cs (2)
27private static HBRUSH s_grabHandleFillBrushPrimary = 29private static HBRUSH s_grabHandleFillBrush =
System.Windows.Forms.Primitives (16)
System\Windows\Forms\DeviceContextExtensions.cs (6)
40internal static void FillRectangle(this DeviceContextHdcScope hdc, Rectangle rectangle, HBRUSH hbrush) => 43internal static void FillRectangle(this HDC hdc, Rectangle rectangle, HBRUSH hbrush) 130HBRUSH brush, 137HBRUSH brush, 149internal static void FillRectangle(this GetDcScope hdc, HBRUSH hbrush, Rectangle rectangle) => 152internal static void FillRectangle(this HDC hdc, HBRUSH hbrush, Rectangle rectangle)
Windows.Win32.PInvoke.GDI32.dll.g.cs (4)
28 internal static unsafe winmdroot.Graphics.Gdi.HBRUSH CreateBrushIndirect(in winmdroot.Graphics.Gdi.LOGBRUSH plbrush) 32 winmdroot.Graphics.Gdi.HBRUSH __result = PInvoke.CreateBrushIndirect(plbrushLocal); 48 internal static extern unsafe winmdroot.Graphics.Gdi.HBRUSH CreateBrushIndirect(winmdroot.Graphics.Gdi.LOGBRUSH* plbrush); 74 internal static extern winmdroot.Graphics.Gdi.HBRUSH CreatePatternBrush(winmdroot.Graphics.Gdi.HBITMAP hbm);
Windows.Win32.PInvoke.USER32.dll.g.cs (3)
942 /// <inheritdoc cref="FillRect(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HBRUSH)"/> 944 internal static unsafe int FillRect(winmdroot.Graphics.Gdi.HDC hDC, in winmdroot.Foundation.RECT lprc, winmdroot.Graphics.Gdi.HBRUSH hbr) 968 internal static extern unsafe int FillRect(winmdroot.Graphics.Gdi.HDC hDC, winmdroot.Foundation.RECT* lprc, winmdroot.Graphics.Gdi.HBRUSH hbr);
Windows.Win32.WNDCLASSW.g.cs (1)
78 internal winmdroot.Graphics.Gdi.HBRUSH hbrBackground;
Windows\Win32\PInvoke.FillRect.cs (2)
8/// <inheritdoc cref="FillRect(HDC, in RECT, HBRUSH)"/> 9public static int FillRect<T>(T hDC, ref RECT lprc, HBRUSH hbr)
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
82Assert.Equal(blueBrush.HBRUSH, (HBRUSH)current);
System.Windows.Forms.Primitives.TestUtilities (2)
Win32\WindowClass.cs (2)
40HBRUSH backgroundBrush = default, 55else if (backgroundBrush == (HBRUSH)(-1))