http://bugs.winehq.org/show_bug.cgi?id=10531
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #5 from Anastasius Focht focht@gmx.net 2008-02-06 15:08:37 --- Hello,
well it's simple ... wine's button control lacks NM_CUSTOMDRAW notification support.
The BS_OWNERDRAWN style might have worked for Win9X but not for Windows XP - it's handled differently (assuming comctl32 ver >= 6). XP controls use WM_NOTIFY -> NM_CUSTOMDRAW notifications (sent to the parent) for that purpose. Use some windows/message spy to observe the behaviour (calc returns CDRF_SKIPDEFAULT to indicate it draws the entire item by itself).
See:
http://msdn2.microsoft.com/en-us/library/bb761847(VS.85).aspx http://msdn2.microsoft.com/en-us/library/bb761817(VS.85).aspx
for further information.
Implement custom draw notification messages and you will coloured buttons.
Regards