Module: wine Branch: master Commit: bce1cebdd4fca0857e689dbe33538047b1c613c8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bce1cebdd4fca0857e689dbe33...
Author: Nikolay Sivov bunglehead@gmail.com Date: Mon Sep 28 22:04:41 2009 +0400
comctl32/monthcal: Right button should trigger a popup menu on release.
---
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);