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