https://bugs.winehq.org/show_bug.cgi?id=40390
--- Comment #1 from ryampolsky@yahoo.com --- I just determined that if I disable theming on the individual owner-draw buttons after I create them by calling SetWindowTheme(hWnd, L" ", L" "), owner drawn buttons work normally with a theme selected.
This seems to work consistently for pushbuttons that I create myself. But for pushbuttons defined with BS_OWNERDRAW on dialogs defined in my .rc file, it's inconsistent. For those, I tried adding calls to
SetWindowTheme(GetDlgItem(hDlg, <button_id>), L" ", L" ");
in my M_INITDIALOG handler. Works on some dialogs and not on others.