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

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2020-01-24 15:25:14 +08:00 committed by Alexandre Julliard
parent a4e29e9f5b
commit 364f0c3b6c
2 changed files with 2 additions and 2 deletions

View File

@ -2258,7 +2258,8 @@ MONTHCAL_LButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam)
MONTHCAL_SetSelRange(infoPtr, st);
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;
}
}

View File

@ -2042,7 +2042,6 @@ static void test_sel_notify(void)
got_MCN_SELECT = got_MCN_SELCHANGE = FALSE;
SendMessageA(hwnd, WM_LBUTTONDOWN, 0, MAKELPARAM(mchit.pt.x, mchit.pt.y));
if (styles[i].val & MCS_MULTISELECT)
todo_wine
ok(got_MCN_SELCHANGE, "%d: MCN_SELCHANGE should be sent\n", i);
else
ok(!got_MCN_SELCHANGE, "%d: MCN_SELCHANGE should not be sent\n", i);