9 references to GetStockObject
System.Drawing.Common (1)
System\Drawing\SystemFonts.cs (1)
183
HFONT handle = (HFONT)PInvokeCore.
GetStockObject
(GET_STOCK_OBJECT_FLAGS.DEFAULT_GUI_FONT);
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
5883
return (HBRUSH)PInvokeCore.
GetStockObject
(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH);
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 (2)
1839
using SelectObjectScope brushSelection = new(desktopDC, PInvokeCore.
GetStockObject
(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
1860
using SelectObjectScope brushSelection = new(desktopDC, PInvokeCore.
GetStockObject
(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
441
using SelectObjectScope brushSelection = new(dc, PInvokeCore.
GetStockObject
(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
System.Windows.Forms.Primitives (1)
System\Windows\Forms\DeviceContextExtensions.cs (1)
35
using SelectObjectScope brushScope = new(hdc, PInvokeCore.
GetStockObject
(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
System.Windows.Forms.Primitives.Tests (1)
Interop\Gdi32\GetStockObjectTests.cs (1)
14
HGDIOBJ hgdiobj = PInvokeCore.
GetStockObject
((GET_STOCK_OBJECT_FLAGS)id);
System.Windows.Forms.Primitives.TestUtilities (1)
DeviceContextState.cs (1)
141
HGDIOBJ hgdiobj = PInvokeCore.
GetStockObject
(selectionRecord->StockObject);