Dmitry Timoshkov dmitry@codeweavers.com writes:
The application I'm working on relies on this, it doesn't expect that button completely redraws itself on WM_SETFOCUS/WM_KILLFOCUS messages.
This version of the patch skips the button drawing in the case of action == ODA_FOCUS.
You then need to draw the focus rect unconditionally for ODA_FOCUS.