Is it possible to set the background color of a dialog button in Win32 without using an owner-drawn button?
The following paints the background of every dialog item except the buttons (not owner-drawn):
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