10 references to CreateSolidBrush
System.Private.Windows.Core (3)
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (2)
27
/// Creates a solid brush based on the <paramref name="color"/> using <see cref="PInvokeCore.
CreateSolidBrush
(COLORREF)"/>.
33
: PInvokeCore.
CreateSolidBrush
(color);
Windows\Win32\PInvokeCore.GetSysColorBrush.cs (1)
24
return
CreateSolidBrush
(systemColor);
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
799
backBrush = PInvokeCore.
CreateSolidBrush
((COLORREF)(uint)ColorTranslator.ToWin32(color));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3621
= PInvokeCore.
CreateSolidBrush
(ColorTranslator.ToWin32(Color.FromArgb(64, 64, 64)));
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2108
using ObjectScope brush = new(PInvokeCore.
CreateSolidBrush
((COLORREF)(uint)ColorTranslator.ToWin32(backColor)));
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignerUtils.cs (4)
28
PInvokeCore.
CreateSolidBrush
((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window));
30
PInvokeCore.
CreateSolidBrush
((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));
173
s_grabHandleFillBrushPrimary = PInvokeCore.
CreateSolidBrush
((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window));
176
s_grabHandleFillBrush = PInvokeCore.
CreateSolidBrush
((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));