comctl32/listview: Don't repaint when handling WM_STYLECHANGED.
commita8396d8b1e852276b6cea9f2c50834739d1170da
authorZhiyi Zhang <zzhang@codeweavers.com>
Mon, 17 Oct 2022 08:06:09 +0000 (17 16:06 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 18 Oct 2022 15:56:32 +0000 (18 17:56 +0200)
treeda0b095649065542d9fd24d5307cdd191791fb64
parent44cfa3ec1af33f0f2560878c269405468f999a70
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.
dlls/comctl32/listview.c
dlls/comctl32/tests/misc.c