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