Commit 364f0c3b authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

comctl32: For multiselect monthcal control send MCN_SELCHANGE notification on WM_LBUTTONDOWN event.

parent a4e29e9f
...@@ -2258,7 +2258,8 @@ MONTHCAL_LButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam) ...@@ -2258,7 +2258,8 @@ MONTHCAL_LButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam)
MONTHCAL_SetSelRange(infoPtr, st); MONTHCAL_SetSelRange(infoPtr, st);
infoPtr->status = MC_SEL_LBUTDOWN; infoPtr->status = MC_SEL_LBUTDOWN;
MONTHCAL_SetDayFocus(infoPtr, &ht.st); if (MONTHCAL_SetDayFocus(infoPtr, &ht.st) && (infoPtr->dwStyle & MCS_MULTISELECT))
MONTHCAL_NotifySelectionChange(infoPtr);
return 0; return 0;
} }
} }
......
...@@ -2042,7 +2042,6 @@ static void test_sel_notify(void) ...@@ -2042,7 +2042,6 @@ static void test_sel_notify(void)
got_MCN_SELECT = got_MCN_SELCHANGE = FALSE; got_MCN_SELECT = got_MCN_SELCHANGE = FALSE;
SendMessageA(hwnd, WM_LBUTTONDOWN, 0, MAKELPARAM(mchit.pt.x, mchit.pt.y)); SendMessageA(hwnd, WM_LBUTTONDOWN, 0, MAKELPARAM(mchit.pt.x, mchit.pt.y));
if (styles[i].val & MCS_MULTISELECT) if (styles[i].val & MCS_MULTISELECT)
todo_wine
ok(got_MCN_SELCHANGE, "%d: MCN_SELCHANGE should be sent\n", i); ok(got_MCN_SELCHANGE, "%d: MCN_SELCHANGE should be sent\n", i);
else else
ok(!got_MCN_SELCHANGE, "%d: MCN_SELCHANGE should not be sent\n", i); ok(!got_MCN_SELCHANGE, "%d: MCN_SELCHANGE should not be sent\n", i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment