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