Aric Stewart aric@codeweavers.com writes:
A full fix would be to make sure we never call the paint function directly. However the only time this seems to actually cause a crash is with owner drawn. This patch corrected the problem with owner drawn so that we do not have to retest everything with buttons.
This seems to defeat the purpose of having the ODA_* constants. Would it also fix your problem to only do the PAINT_BUTTON when the window is visible?