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