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

Alexandre Julliard julliard at winehq.org
Fri Oct 2 11:02:20 CDT 2009


Module: wine
Branch: master
Commit: 3088bb31291340256a16e1163f6a64c39cfa6830
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3088bb31291340256a16e1163f6a64c39cfa6830

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Thu Oct  1 21:59:49 2009 +0400

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

---

 dlls/comctl32/monthcal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index 16d3dcf..ed454da 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -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);




More information about the wine-cvs mailing list