mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 11:14:09 +00:00
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.
This commit is contained in:
parent
44cfa3ec1a
commit
a8396d8b1e
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue