http://bugs.winehq.org/show_bug.cgi?id=10531
--- Comment #9 from Andre Wisplinghoff andre.wisplinghoff@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.