[COMCTL32] comctl32/propsheet: Fix redrawing of the static text elements.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 2 Nov 2017 22:52:33 +0000 (23:52 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 2 Nov 2017 22:52:33 +0000 (23:52 +0100)
Partial revert of SVN r74136 (b1b4279): enforce the correct "color" for
the background of the static text elements: indeed, using a "transparent"
background kept instead the old window color, which was not correctly
repainted, unless you enforced a repaint by, e.g. moving away then back
the window, or moved something else on top of it.

Tested and approved by 'reactosfanboy'.
Was detected as a regression in the wizard of DVDWrite Now 1.5.12
Formatter GUI.

CORE-13929
CORE-12912

dll/win32/comctl32/propsheet.c

index 39e9d9a..e5f5d50 100644 (file)
@@ -1176,13 +1176,8 @@ PROPSHEET_WizardSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
       return TRUE;
 
     case WM_CTLCOLORSTATIC:
-#ifdef __REACTOS__
-      SetBkMode((HDC)wParam, TRANSPARENT);
-      return (INT_PTR)GetStockObject(HOLLOW_BRUSH);
-#else
       SetBkColor((HDC)wParam, GetSysColor(COLOR_WINDOW));
       return (INT_PTR)GetSysColorBrush(COLOR_WINDOW);
-#endif
   }
 
   return DefSubclassProc(hwnd, uMsg, wParam, lParam);