2 writes to hBitmapDC
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Control.cs (2)
19248hBitmapDC = new HandleRef(this, UnsafeNativeMethods.CreateCompatibleDC(NativeMethods.NullHandleRef)); 19280hBitmapDC = NativeMethods.NullHandleRef;
8 references to hBitmapDC
System.Windows.Forms (8)
winforms\Managed\System\WinForms\Control.cs (8)
19250int planes = UnsafeNativeMethods.GetDeviceCaps(hBitmapDC, NativeMethods.PLANES); 19251int bitsPixel = UnsafeNativeMethods.GetDeviceCaps(hBitmapDC, NativeMethods.BITSPIXEL); 19254hOriginalBmp = new HandleRef(this, SafeNativeMethods.SelectObject(hBitmapDC, hBitmap)); 19262if (hBitmapDC.Handle == IntPtr.Zero || hMetafileDC.Handle == IntPtr.Zero || hBitmap.Handle == IntPtr.Zero) { 19269success = DICopy(hMetafileDC, hBitmapDC, destRect, true); 19271SafeNativeMethods.SelectObject(hBitmapDC, hOriginalBmp); 19274success = UnsafeNativeMethods.DeleteCompatibleDC(hBitmapDC); 19289get { return hBitmapDC.Handle; }