12 references to hdc
System.Windows.Forms (12)
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
808nmtvcd.nmcd.hdc, nmtvcd.nmcd.rc,
winforms\Managed\System\WinForms\ListView.cs (8)
2518SafeNativeMethods.SelectObject(new HandleRef(nmcd->nmcd, nmcd->nmcd.hdc), new HandleRef(odCacheFontHandleWrapper, odCacheFontHandleWrapper.Handle)); 2546Graphics g = Graphics.FromHdcInternal(nmcd->nmcd.hdc); 2627Graphics g = Graphics.FromHdcInternal(nmcd->nmcd.hdc); 2842SafeNativeMethods.SelectObject(new HandleRef(nmcd->nmcd, nmcd->nmcd.hdc), new HandleRef(null, odCacheFontHandle)); 2852SafeNativeMethods.SelectObject(new HandleRef(nmcd->nmcd, nmcd->nmcd.hdc), new HandleRef(odCacheFontHandleWrapper, odCacheFontHandleWrapper.Handle)); 5472Graphics g = Graphics.FromHdcInternal(nmcd->hdc); 5478Color foreColor = ColorTranslator.FromWin32(SafeNativeMethods.GetTextColor(new HandleRef(this, nmcd->hdc))); 5479Color backColor = ColorTranslator.FromWin32(SafeNativeMethods.GetBkColor(new HandleRef(this, nmcd->hdc)));
winforms\Managed\System\WinForms\TreeView.cs (3)
2722Graphics g = Graphics.FromHdcInternal(nmcd.nmcd.hdc); 2793SafeNativeMethods.SelectObject(new HandleRef(nmcd.nmcd, nmcd.nmcd.hdc), new HandleRef(renderinfo, renderinfo.FontHandle)); 2820Graphics g = Graphics.FromHdcInternal(nmcd.nmcd.hdc);