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)
24
public
HBRUSH
HBRUSH { get; }
38
public static implicit operator
HBRUSH
(in CreateBrushScope scope) => scope.HBRUSH;
Windows\Win32\Graphics\Gdi\HGDIOBJ.cs (2)
11
public 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)"/>
25
BOOL result = DrawIconEx(hDC, xLeft, yTop, hIcon.Handle, cxWidth, cyWidth, 0,
HBRUSH
.Null, diFlags);
Windows\Win32\PInvokeCore.GetSysColorBrush.cs (1)
11
public static
HBRUSH
GetSysColorBrush(Color systemColor)
System.Windows.Forms (20)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3057
internal override
HBRUSH
InitializeDCForWmCtlColor(HDC dc, MessageId msg)
System\Windows\Forms\Control.cs (8)
766
internal
HBRUSH
BackColorBrush
770
if (Properties.TryGetValue(s_backBrushProperty, out
HBRUSH
customBackBrush))
790
HBRUSH
backBrush;
4781
if (Properties.TryGetValue(s_backBrushProperty, out
HBRUSH
backBrush))
5873
internal virtual
HBRUSH
InitializeDCForWmCtlColor(HDC dc, MessageId msg)
5883
return (
HBRUSH
)PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH);
6675
if (Properties.TryGetValue(s_backBrushProperty, out
HBRUSH
backBrush))
7540
if (!RecreatingHandle && GetState(States.OwnCtlBrush) && Properties.TryGetValue(s_backBrushProperty, out
HBRUSH
backBrush))
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
97
private static void DrawAndFillEllipse(HDC hdc, HPEN borderPen,
HBRUSH
fieldBrush, Rectangle bounds)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2001
internal override
HBRUSH
InitializeDCForWmCtlColor(HDC dc, MessageId msg)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
5704
HBRUSH
halftone = ControlPaint.CreateHalftoneHBRUSH();
5723
HBRUSH
halftone = ControlPaint.CreateHalftoneHBRUSH();
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
698
HBRUSH
halftone = ControlPaint.CreateHalftoneHBRUSH();
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1995
internal override
HBRUSH
InitializeDCForWmCtlColor(HDC dc, MessageId msg)
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
24
private
HBRUSH
_hbrushDither;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1475
HBRUSH
halftone = ControlPaint.CreateHalftoneHBRUSH();
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
134
windowClass.hbrBackground = (
HBRUSH
)PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
354
internal static unsafe
HBRUSH
CreateHalftoneHBRUSH()
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
492
internal override
HBRUSH
InitializeDCForWmCtlColor(HDC dc, MessageId msg) => default;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DesignerUtils.cs (2)
27
private static
HBRUSH
s_grabHandleFillBrushPrimary =
29
private static
HBRUSH
s_grabHandleFillBrush =
System.Windows.Forms.Primitives (16)
System\Windows\Forms\DeviceContextExtensions.cs (6)
40
internal static void FillRectangle(this DeviceContextHdcScope hdc, Rectangle rectangle,
HBRUSH
hbrush) =>
43
internal static void FillRectangle(this HDC hdc, Rectangle rectangle,
HBRUSH
hbrush)
130
HBRUSH
brush,
137
HBRUSH
brush,
149
internal static void FillRectangle(this GetDcScope hdc,
HBRUSH
hbrush, Rectangle rectangle) =>
152
internal 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
)"/>
9
public static int FillRect<T>(T hDC, ref RECT lprc,
HBRUSH
hbr)
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
82
Assert.Equal(blueBrush.HBRUSH, (
HBRUSH
)current);
System.Windows.Forms.Primitives.TestUtilities (2)
Win32\WindowClass.cs (2)
40
HBRUSH
backgroundBrush = default,
55
else if (backgroundBrush == (
HBRUSH
)(-1))