6 references to GetCurrentObject
System.Windows.Forms (6)
misc\GDI\DeviceContext.cs (4)
181
hCurrentPen = hInitialPen = IntUnsafeNativeMethods.
GetCurrentObject
(new HandleRef(this, hDC), IntNativeMethods.OBJ_PEN);
182
hCurrentBrush = hInitialBrush = IntUnsafeNativeMethods.
GetCurrentObject
(new HandleRef(this, hDC), IntNativeMethods.OBJ_BRUSH);
183
hCurrentBmp = hInitialBmp = IntUnsafeNativeMethods.
GetCurrentObject
(new HandleRef(this, hDC), IntNativeMethods.OBJ_BITMAP);
184
hCurrentFont = hInitialFont = IntUnsafeNativeMethods.
GetCurrentObject
(new HandleRef(this, hDC), IntNativeMethods.OBJ_FONT);
misc\GDI\DeviceContext2.cs (1)
239
IntPtr hCurrentFont = IntUnsafeNativeMethods.
GetCurrentObject
(new HandleRef(this, hDC), IntNativeMethods.OBJ_FONT);
misc\GDI\WindowsFont.cs (1)
255
IntPtr hFont = IntUnsafeNativeMethods.
GetCurrentObject
(new HandleRef(null, hdc), IntNativeMethods.OBJ_FONT);