16 references to SetBkColor
System.Private.Windows.Core (3)
Windows\Win32\Graphics\Gdi\SetBackgroundColorScope.cs (3)
23/// <see cref="PInvokeCore.SetBkColor(HDC, COLORREF)"/>. 27_previousColor = PInvokeCore.SetBkColor(hdc, color); 37PInvokeCore.SetBkColor(_hdc, _previousColor);
System.Windows.Forms (12)
System\Windows\Forms\Control.cs (1)
5879PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(BackColor));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2016PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(BackColor)); 3681PInvokeCore.SetBkColor( 3699PInvokeCore.SetBkColor(
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (6)
116PInvokeCore.SetBkColor(dc, backColor); 160savedColor = PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlLightLight)); 171PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlDark)); 181PInvokeCore.SetBkColor(dc, savedColor); 267COLORREF oldBackColor = PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Control)); 271PInvokeCore.SetBkColor(dc, oldBackColor);
System\Windows\Forms\Rendering\ControlPaint.cs (2)
346PInvokeCore.SetBkColor(targetDC, (COLORREF)0x00ffffff); // white 1842PInvokeCore.SetBkColor(desktopDC, (COLORREF)(uint)ColorTranslator.ToWin32(graphicsColor));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
444PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(graphicsColor));