https://bugs.winehq.org/show_bug.cgi?id=29921
--- Comment #9 from Dmitry Timoshkov dmitry@baikal.ru --- Created attachment 54515 --> https://bugs.winehq.org/attachment.cgi?id=54515 source and binaries for testing
Setup depends on a difference in painting of the "Button" control between user32 and comctl32.
Attached test demonstrates the problem. Basically when an executable includes a comctl32 manifest all the buttons should be painted by comctl32, and the way comctl32 handles WM_SETFOCUS, BM_SETSTATE and BM_SETCHECK messages for a button differs from user32: comctl32 always invalidates the button after handling these messages causing a repaint, while user32 doesn't do that, and that leads to the painting bugs.
The test contains 2 binaries: button_test_v1.exe - without manifest, and button_test_v2.exe - with manifest. It's worth to note that even with disabled theme Windows still loads comctl32.dll for a binary with manifest, while Wine never does that, so it's currently impossible to modify comctl32 code for the "Button" class to fix this bug.