Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
23d8d35e
Commit
23d8d35e
authored
Aug 08, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Make month popup menu respect multiple calendars.
parent
09d883fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
monthcal.c
dlls/comctl32/monthcal.c
+16
-4
No files found.
dlls/comctl32/monthcal.c
View file @
23d8d35e
...
...
@@ -2046,11 +2046,23 @@ MONTHCAL_LButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam)
i
=
TrackPopupMenu
(
hMenu
,
TPM_LEFTALIGN
|
TPM_NONOTIFY
|
TPM_RIGHTBUTTON
|
TPM_RETURNCMD
,
menupoint
.
x
,
menupoint
.
y
,
0
,
infoPtr
->
hwndSelf
,
NULL
);
if
((
i
>
0
)
&&
(
i
<
13
)
&&
infoPtr
->
minSel
.
wMonth
!=
i
)
if
((
i
>
0
)
&&
(
i
<
13
)
&&
infoPtr
->
calendars
[
ht
.
iOffset
].
month
.
wMonth
!=
i
)
{
infoPtr
->
minSel
.
wMonth
=
i
;
MONTHCAL_IsDateInValidRange
(
infoPtr
,
&
infoPtr
->
minSel
,
TRUE
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
FALSE
);
INT
delta
=
i
-
infoPtr
->
calendars
[
ht
.
iOffset
].
month
.
wMonth
;
SYSTEMTIME
st
;
/* check if change allowed by range set */
st
=
delta
<
0
?
infoPtr
->
calendars
[
0
].
month
:
infoPtr
->
calendars
[
infoPtr
->
cal_num
-
1
].
month
;
MONTHCAL_GetMonth
(
&
st
,
delta
);
if
(
MONTHCAL_IsDateInValidRange
(
infoPtr
,
&
st
,
FALSE
))
{
MONTHCAL_Scroll
(
infoPtr
,
delta
);
MONTHCAL_NotifyDayState
(
infoPtr
);
MONTHCAL_NotifySelectionChange
(
infoPtr
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
FALSE
);
}
}
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment