title: Setting background color of Win32 dialog button (not owner-drawn)
body: <p>Is it possible to set the background color of a dialog button in Win32 without using an owner-drawn button?</p>
  
  <p>The following paints the background of every dialog item except the buttons (not owner-drawn):</p>
  
  <pre><code>case WM_CTLCOLOREDIT:
  case WM_CTLCOLORSTATIC:
  case WM_CTLCOLORBTN:
  
      HDC hdcStatic = (HDC)wParam;
      SetBkColor(hdcStatic, bgEditColor);    
  
      return (INT_PTR)bgBrushCurrent; // a red brush created earlier
  </code></pre>