Commit cacb60cb authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

comctl32/updown: Don't repaint when handling WM_STYLECHANGED.

parent b7624fb4
......@@ -1110,7 +1110,7 @@ static void test_WM_STYLECHANGED(void)
{TOOLTIPS_CLASSA, wm_stylechanged_seq},
{TRACKBAR_CLASSA, wm_stylechanged_trackbar_seq, TRUE},
{WC_TREEVIEWA, wm_stylechanged_seq},
{UPDOWN_CLASSA, wm_stylechanged_seq, TRUE},
{UPDOWN_CLASSA, wm_stylechanged_seq},
{WC_SCROLLBARA, wm_stylechanged_seq},
};
......
......@@ -955,10 +955,8 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
break;
case WM_STYLECHANGED:
if (wParam == GWL_STYLE) {
if (wParam == GWL_STYLE)
infoPtr->dwStyle = ((LPSTYLESTRUCT)lParam)->styleNew;
InvalidateRect (infoPtr->Self, NULL, FALSE);
}
break;
case WM_THEMECHANGED:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment