11 references to hDC
System.Windows.Forms (11)
winforms\Managed\System\WinForms\ComboBox.cs (3)
3607IntPtr oldPal = SetUpPalette(dis.hDC, false /*force*/, false /*realize*/); 3609Graphics g = Graphics.FromHdcInternal(dis.hDC); 3621SafeNativeMethods.SelectPalette(new HandleRef(this, dis.hDC), new HandleRef(null, oldPal), 0);
winforms\Managed\System\WinForms\ListBox.cs (1)
2323IntPtr dc = dis.hDC;
winforms\Managed\System\WinForms\MenuItem.cs (3)
1494IntPtr oldPal = Control.SetUpPalette(dis.hDC, false /*force*/, false); 1496Graphics g = Graphics.FromHdcInternal(dis.hDC); 1506SafeNativeMethods.SelectPalette(new HandleRef(null, dis.hDC), new HandleRef(null, oldPal), 0);
winforms\Managed\System\WinForms\StatusBar.cs (1)
1038Graphics g = Graphics.FromHdcInternal(dis.hDC);
winforms\Managed\System\WinForms\TabControl.cs (3)
2056IntPtr oldPal = SetUpPalette(dis.hDC, false /*force*/, false /*realize*/); 2057using (Graphics g = Graphics.FromHdcInternal(dis.hDC)) { 2061SafeNativeMethods.SelectPalette(new HandleRef(null, dis.hDC), new HandleRef(null, oldPal), 0);