comctl32/monthcal: No need to redraw if month didn't change after popup menu.

This commit is contained in:
Nikolay Sivov 2009-10-01 21:59:49 +04:00 committed by Alexandre Julliard
parent 28ec8565f0
commit 3088bb3129
1 changed files with 1 additions and 1 deletions

View File

@ -1464,7 +1464,7 @@ MONTHCAL_LButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam)
i = TrackPopupMenu(hMenu,TPM_LEFTALIGN | TPM_NONOTIFY | TPM_RIGHTBUTTON | TPM_RETURNCMD,
menupoint.x, menupoint.y, 0, infoPtr->hwndSelf, NULL);
if ((i > 0) && (i < 13))
if ((i > 0) && (i < 13) && infoPtr->curSel.wMonth != i)
{
infoPtr->curSel.wMonth = i;
InvalidateRect(infoPtr->hwndSelf, NULL, FALSE);