[PATCH] user32: use InvalidateRect to repaint buttons

Mark Harmstone hellas at burntcomma.com
Tue Feb 10 15:48:44 CST 2015


At present, whenever a button needs to be redrawn user32 calls its own
internal function. This causes problems if the button is subclassed, as
the superclass then won't receive the WM_PAINT message - this is why
themed buttons lose their theme when you click on them. This patch changes
it to instead call InvalidateRect, which will force a WM_PAINT message
to be sent to the topmost class.

---
 dlls/user32/button.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-button-drawing-bug.patch
Type: text/x-patch
Size: 2620 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150210/4b76f323/attachment.bin>


More information about the wine-patches mailing list