comctl32/toolbar: Potential fix for button redraw in TBSTYLE_FLAT toolbars
Andrew de Quincey
adq_dvb at lidskialf.net
Thu Dec 11 15:32:36 CST 2003
IDA (yes, that again :), doesn't redraw its toolbar buttons properly. When you
move the mouse over them, its meant to have a button rollover. Under wine
however, it highlights the button, but does not de-highlight.
Some investigation shows that these toolbar windows have the TBSTYLE_FLAT
style.
Some more investigation (with spyxx) showed that under windows, each toolbar
receives a WM_PAINT message, and, when the mouse leaves a button (and it
should be de-highlighted), it receives a single WM_ERASEBKGND message.
I have concluded that the WM_ERASEBKGND is sent from within WM_PAINT when the
toolbar detects that the mouse has moved off a button and wants to
de-highlight it.
Lemme know what you think.. any suggestions greatly appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-comctl32-toolbar-buttonredraw.patch
Type: text/x-diff
Size: 950 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20031211/9f14182b/wine-comctl32-toolbar-buttonredraw.bin
More information about the wine-patches
mailing list