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
344f0700
Commit
344f0700
authored
Sep 29, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Fix hittesting for MCHT_CALENDARDATEPREV/MCHT_CALENDARDATENEXT cases.
parent
74d00048
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
monthcal.c
dlls/comctl32/monthcal.c
+13
-13
No files found.
dlls/comctl32/monthcal.c
View file @
344f0700
...
...
@@ -1210,30 +1210,30 @@ MONTHCAL_HitTest(const MONTHCAL_INFO *infoPtr, MCHITTESTINFO *lpht)
goto
done
;
}
if
(
PtInRect
(
&
infoPtr
->
days
,
lpht
->
pt
))
{
{
lpht
->
st
.
wYear
=
infoPtr
->
curSel
.
wYear
;
if
(
day
<
1
)
{
{
retval
=
MCHT_CALENDARDATEPREV
;
lpht
->
st
.
wMonth
=
infoPtr
->
curSel
.
wMonth
-
1
;
if
(
lpht
->
st
.
wMonth
<
1
)
{
if
(
lpht
->
st
.
wMonth
<
1
)
{
lpht
->
st
.
wMonth
=
12
;
lpht
->
st
.
wYear
--
;
}
lpht
->
st
.
wDay
=
MONTHCAL_MonthLength
(
lpht
->
st
.
wMonth
,
lpht
->
st
.
wYear
)
-
day
;
}
}
lpht
->
st
.
wDay
=
MONTHCAL_MonthLength
(
lpht
->
st
.
wMonth
,
lpht
->
st
.
wYear
)
+
day
;
}
else
if
(
day
>
MONTHCAL_MonthLength
(
infoPtr
->
curSel
.
wMonth
,
infoPtr
->
curSel
.
wYear
))
{
{
retval
=
MCHT_CALENDARDATENEXT
;
lpht
->
st
.
wMonth
=
infoPtr
->
curSel
.
wMonth
+
1
;
if
(
lpht
->
st
.
wMonth
<
12
)
{
if
(
lpht
->
st
.
wMonth
>
12
)
{
lpht
->
st
.
wMonth
=
1
;
lpht
->
st
.
wYear
++
;
}
lpht
->
st
.
wDay
=
day
-
MONTHCAL_MonthLength
(
infoPtr
->
curSel
.
wMonth
,
infoPtr
->
curSel
.
wYear
)
;
}
}
lpht
->
st
.
wDay
=
day
-
MONTHCAL_MonthLength
(
infoPtr
->
curSel
.
wMonth
,
infoPtr
->
curSel
.
wYear
)
;
}
else
{
retval
=
MCHT_CALENDARDATE
;
lpht
->
st
.
wMonth
=
infoPtr
->
curSel
.
wMonth
;
...
...
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