2 writes to HDC
System.Windows.Forms (2)
System\Windows\Forms\Control.MetafileDCWrapper.cs (2)
40
HDC
= PInvokeCore.CreateCompatibleDC(default);
75
HDC
= default;
8 references to HDC
System.Windows.Forms (8)
System\Windows\Forms\Control.cs (1)
8757
PInvokeCore.SendMessage(this, PInvokeCore.WM_PRINT, (WPARAM)dcWrapper.
HDC
, (LPARAM)lParam);
System\Windows\Forms\Control.MetafileDCWrapper.cs (7)
42
int planes = PInvokeCore.GetDeviceCaps(
HDC
, GET_DEVICE_CAPS_INDEX.PLANES);
43
int bitsPixel = PInvokeCore.GetDeviceCaps(
HDC
, GET_DEVICE_CAPS_INDEX.BITSPIXEL);
45
_hOriginalBmp = (HBITMAP)PInvokeCore.SelectObject(
HDC
, _hBitmap);
55
if (
HDC
.IsNull || _hMetafileDC.IsNull || _hBitmap.IsNull)
64
success = DICopy(_hMetafileDC,
HDC
, _destRect, bStretch: true);
66
PInvokeCore.SelectObject(
HDC
, _hOriginalBmp);
69
success = PInvokeCore.DeleteDC(
HDC
);