[Bug 10531] Windows Calculator: Color in buttons missing

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Feb 17 17:02:57 CST 2008


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





--- Comment #9 from Andre Wisplinghoff <andre.wisplinghoff at gmail.com>  2008-02-17 17:02:56 ---
OK, I've got the patch ready, so far.

However in my opinion MSDN documentation isn't entirely correct. WinXP Calc
sends CDRF_SKIPDEFAULT in response to the CDDS_PREPAINT notification. According
to the documentation this means that the control should not do any drawing at
all. But: I tried it like that and the result was, that there was colored text
without the surroundings of buttons (frame etc).

So in my current implementation the button sends CDDS_PREPAINT after the frame
was drawn, but before the label is drawn. If CDRF_SKIPDEFAULT is send in
response, the label isn't drawn by the control.

If somebody has an explanation for this other than MSDN being incorrect, please
let me know.
Otherwise I'm going to send in the patch on Tuesday.


-- 
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