[Bug 40390] When using a UX theme, owner-drawn buttons don' t draw until you click them once

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Feb 2 16:15:48 CST 2017


https://bugs.winehq.org/show_bug.cgi?id=40390

--- Comment #1 from ryampolsky at 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list