user32: always call InvalidateRect to redraw a button.

Reece Dunn msclrhd at
Sun Jul 6 19:44:01 CDT 2008

The logic to redraw a button when needed was inconsistent across the
button's window procedure.

This patch consistently uses:
    if (IsWindowVisible(hWnd)) InvalidateRect( hWnd, NULL, TRUE );
to redraw the button.

This is needed to support a themed button, otherwise the subclassed
button for theming does not correctly intercept redraw notifications.

- Reece
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-user32-always-call-InvalidateRect-to-redraw-a-butto.patch
Type: text/x-diff
Size: 4957 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list