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