https://bugs.winehq.org/show_bug.cgi?id=51348
--- Comment #4 from Alex x1917x@gmail.com --- (In reply to Zhiyi Zhang from comment #3)
Created attachment 70222 [details] patch
Hi Alex. Thanks for reporting this bug. Tests show that only SetWindowTheme() should send WM_THEMECHANGED. EnableTheming() and ApplyTheme() should still post the message. I made a new version. Could you test that these patches still fix your problem?
Sure, will be able to recompile Wine and test the patch this weekend.
It should fix the issue I think, the only minor concern that it changes SetWindowTheme() behavior a bit - currently it posts WM_THEMECHANGED to target HWND's children as well, the patch changes this to sending WM_THEMECHANGED to the target HWND only. But this is exactly what Windows does.