[PATCH 0/1] MR10730: comctl32: adjust MCHT_CALENDARDATE selection for MCS_MULTISELECT.
Use MONTHCAL_SetSelRange for multi-select, otherwise MONTHCAL_SetCurSel. Wine-Bug:https://bugs.winehq.org/show_bug.cgi?id=54771 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10730
From: Maotong Zhang <zmtong1988@gmail.com> Use MONTHCAL_SetSelRange for multi-select, otherwise MONTHCAL_SetCurSel. Wine-Bug:https://bugs.winehq.org/show_bug.cgi?id=54771 --- dlls/comctl32/monthcal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index c814998d2b6..b7c424f1aee 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -2246,7 +2246,10 @@ MONTHCAL_LButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam) st[0] = st[1] = ht.st; /* clear selection range */ - MONTHCAL_SetSelRange(infoPtr, st); + if (infoPtr->dwStyle & MCS_MULTISELECT) + MONTHCAL_SetSelRange(infoPtr, st); + else + MONTHCAL_SetCurSel(infoPtr, st); infoPtr->status = MC_SEL_LBUTDOWN; if (MONTHCAL_SetDayFocus(infoPtr, &ht.st) && (infoPtr->dwStyle & MCS_MULTISELECT)) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10730
This seems to work for linked bug report. Why is it marked as a draft? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10730#note_146080
On Mon Jul 20 00:16:57 2026 +0000, Nikolay Sivov wrote:
This seems to work for linked bug report. Why is it marked as a draft? I noticed some failures in the comctl32 test program, so I marked the patch as "draft" temporarily. I'll look into the failures and resubmit the patch once they have been addressed.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10730#note_146082
participants (3)
-
Maotong Zhang -
Maotong Zhang (@xiaotong) -
Nikolay Sivov (@nsivov)