Monthcal lost focus fix

Alexandre Julliard julliard at winehq.org
Fri Dec 7 12:01:22 CST 2007


Gregor Brunmar <gregor.brunmar at home.se> writes:

> diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
> index 8a92d42..e826612 100644
> --- a/dlls/comctl32/monthcal.c
> +++ b/dlls/comctl32/monthcal.c
> @@ -1719,11 +1719,12 @@ MONTHCAL_Paint(MONTHCAL_INFO *infoPtr, WPARAM wParam)
>  
>  
>  static LRESULT
> -MONTHCAL_KillFocus(const MONTHCAL_INFO *infoPtr)
> +MONTHCAL_KillFocus(const MONTHCAL_INFO *infoPtr, HWND hFocusWnd)
>  {
>    TRACE("\n");
>  
> -  InvalidateRect(infoPtr->hwndSelf, NULL, TRUE);
> +  if (infoPtr->hwndNotify != hFocusWnd)
> +    ShowWindow(infoPtr->hwndSelf, SW_HIDE);

Is there a reason for removing the InvalidateRect completely?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list