[0.4.7] cherry-pick [COMCTL32] Button: Don't use a class brush. CORE-13445

(cherry picked from commit 34c563fa2a)
This commit is contained in:
Giannis Adamopoulos 2017-11-17 01:25:57 +02:00 committed by Joachim Henze
parent 850c1d6b6d
commit 2fda8374a2

View file

@ -1840,7 +1840,7 @@ void BUTTON_Register()
wndClass.cbClsExtra = 0;
wndClass.cbWndExtra = sizeof(PBUTTON_DATA);
wndClass.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
wndClass.hbrBackground = 0;
wndClass.lpszClassName = WC_BUTTONW;
RegisterClassW(&wndClass);