Index: src/ch/StaticEx.cpp =================================================================== diff -u -rd5c3edd0d167db9b5d47d04248820fda49499a5e -r3ff3695cd69ad4482cf22fb0bb77e120ef6f5106 --- src/ch/StaticEx.cpp (.../StaticEx.cpp) (revision d5c3edd0d167db9b5d47d04248820fda49499a5e) +++ src/ch/StaticEx.cpp (.../StaticEx.cpp) (revision 3ff3695cd69ad4482cf22fb0bb77e120ef6f5106) @@ -174,7 +174,7 @@ ::SetWindowOrgEx(hdc, ps.rcPaint.left, ps.rcPaint.top, NULL); // paint the background - ::FillRect(hdc, &ps.rcPaint, (HBRUSH)::SendMessage((HWND)::GetWindowLong(hwnd, GWLP_HWNDPARENT), WM_CTLCOLORSTATIC, (WPARAM)hdc, (LPARAM)hwnd)); + ::FillRect(hdc, &ps.rcPaint, ::GetSysColorBrush(COLOR_BTNFACE)); // size of the all control RECT rcCtl;