http://bugs.winehq.org/show_bug.cgi?id=58800
--- Comment #7 from Zhiyi Zhang zzhang@codeweavers.com --- Created attachment 79667 --> http://bugs.winehq.org/attachment.cgi?id=79667 PoC patch
This bug occurs because wxWidgets expects a WM_ERASEBKGND message when handling the WM_PAINT message. See https://github.com/wxWidgets/wxWidgets/blob/master/src/msw/toolbar.cpp#L2248. The attached PoC patch fixes it. I will add tests and send a proper fix soon.