[COMCTL32] comctl32/propsheet: Fix redrawing of the static text elements.

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
This commit is contained in:
Hermès Bélusca-Maïto 2017-11-02 23:52:33 +01:00
parent 3c679fc6b4
commit 11049bd6d8
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View 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);