comctl32/treeview: Don't repaint when handling WM_STYLECHANGED.
commit44cfa3ec1af33f0f2560878c269405468f999a70
authorZhiyi Zhang <zzhang@codeweavers.com>
Mon, 17 Oct 2022 07:36:43 +0000 (17 15:36 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 18 Oct 2022 15:56:27 +0000 (18 17:56 +0200)
tree1de2c6fa90d972868d5a7d256aab30c4abfed90b
parentc8ec431fd4cd370daba96aa18d892fa8d7397ef8
comctl32/treeview: Don't repaint when handling WM_STYLECHANGED.

Some applications subclass treeview 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/tests/misc.c
dlls/comctl32/treeview.c