[PATCH 1/7] Right button should trigger a popup menu on release

Nikolay Sivov bunglehead at gmail.com
Mon Sep 28 13:04:41 CDT 2009


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

diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index 603e3e8..e5f5b44 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -1336,7 +1336,7 @@ static void MONTHCAL_GoToPrevMonth(MONTHCAL_INFO *infoPtr)
 }
 
 static LRESULT
-MONTHCAL_RButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam)
+MONTHCAL_RButtonUp(MONTHCAL_INFO *infoPtr, LPARAM lParam)
 {
   static const WCHAR todayW[] = { 'G','o',' ','t','o',' ','T','o','d','a','y',':',0 };
   HMENU hMenu;
@@ -2043,8 +2043,8 @@ MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
   case WM_KILLFOCUS:
     return MONTHCAL_KillFocus(infoPtr, (HWND)wParam);
 
-  case WM_RBUTTONDOWN:
-    return MONTHCAL_RButtonDown(infoPtr, lParam);
+  case WM_RBUTTONUP:
+    return MONTHCAL_RButtonUp(infoPtr, lParam);
 
   case WM_LBUTTONDOWN:
     return MONTHCAL_LButtonDown(infoPtr, lParam);
-- 
1.5.6.5


--=-63dclpNfTxs9LSssIl0i--




More information about the wine-patches mailing list