12 references to SetBkColor
System.Windows.Forms (12)
winforms\Managed\System\WinForms\ComboBox.cs (1)
2212
SafeNativeMethods.
SetBkColor
(new HandleRef(null, dc), ColorTranslator.ToWin32(BackColor));
winforms\Managed\System\WinForms\Control.cs (1)
7143
SafeNativeMethods.
SetBkColor
(new HandleRef(null, dc), ColorTranslator.ToWin32(BackColor));
winforms\Managed\System\WinForms\ControlPaint.cs (2)
321
SafeNativeMethods.
SetBkColor
(new HandleRef(null, target), 0x00ffffff); // white
1800
SafeNativeMethods.
SetBkColor
(new HandleRef(null, dc), ColorTranslator.ToWin32(graphicsColor));
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (6)
720
SafeNativeMethods.
SetBkColor
(new HandleRef(null, dc), backColor);
745
savedColor = SafeNativeMethods.
SetBkColor
(new HandleRef(null, dc), ColorTranslator.ToWin32(SystemColors.ControlLightLight));
756
SafeNativeMethods.
SetBkColor
(new HandleRef(null, dc), ColorTranslator.ToWin32(SystemColors.ControlDark));
766
SafeNativeMethods.
SetBkColor
(new HandleRef(null, dc), savedColor);
840
oldBackColor = SafeNativeMethods.
SetBkColor
(new HandleRef(null, dc), ColorTranslator.ToWin32(SystemColors.Control));
844
SafeNativeMethods.
SetBkColor
(new HandleRef(null, dc), oldBackColor);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
2209
oldBkColor = SafeNativeMethods.
SetBkColor
(new HandleRef(g, hdc), SafeNativeMethods.RGBToCOLORREF(bkColor.ToArgb()));
2235
SafeNativeMethods.
SetBkColor
(new HandleRef(g, hdc), oldBkColor);