Re: user32: Draw the whole button only if requested. Take 2.

2009-07-23 Thread Alexandre Julliard
Dmitry Timoshkov 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 r

Re: user32: Draw the whole button only if requested.

2009-07-22 Thread Alexandre Julliard
Dmitry Timoshkov writes: > @@ -847,7 +847,8 @@ static void PB_Paint( HWND hwnd, HDC hDC, UINT action ) > if (state & (BUTTON_CHECKED | BUTTON_3STATE)) > uState |= DFCS_CHECKED; > > -DrawFrameControl( hDC, &rc, DFC_BUTTON, uState ); > +if (action == ODA_DRAWENTIRE) > +