[Bug 10531] Windows Calculator: Color in buttons missing

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Feb 6 15:08:37 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=10531


Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |focht at gmx.net




--- Comment #5 from Anastasius Focht <focht at 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


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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