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

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

Some applications subclass listview and change style multiple times when painting. Invalidating control when handling WM_STYLECHANGED causes infinite WM_PAINT messages in this case and end up stalling the message queue.
parent 44cfa3ec
......@@ -11298,9 +11298,6 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
/* add scrollbars if needed */
LISTVIEW_UpdateScroll(infoPtr);
/* invalidate client area + erase background */
LISTVIEW_InvalidateList(infoPtr);
return 0;
}
......
......@@ -1096,7 +1096,7 @@ static void test_WM_STYLECHANGED(void)
{HOTKEY_CLASSA, wm_stylechanged_seq},
{WC_IPADDRESSA, wm_stylechanged_seq},
{WC_LISTBOXA, wm_stylechanged_repaint_seq, TRUE},
{WC_LISTVIEWA, wm_stylechanged_seq, TRUE},
{WC_LISTVIEWA, wm_stylechanged_seq},
{MONTHCAL_CLASSA, wm_stylechanged_repaint_seq, TRUE},
{WC_NATIVEFONTCTLA, wm_stylechanged_seq},
{WC_PAGESCROLLERA, wm_stylechanged_pager_seq, TRUE},
......
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