Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
96022da6
Commit
96022da6
authored
Oct 04, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Implement MCM_GETMONTHRANGE for GMR_VISIBLE flag, single calendar control only.
parent
ec3e9308
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
monthcal.c
dlls/comctl32/monthcal.c
+21
-2
monthcal.c
dlls/comctl32/tests/monthcal.c
+3
-0
No files found.
dlls/comctl32/monthcal.c
View file @
96022da6
...
...
@@ -936,10 +936,29 @@ MONTHCAL_SetFirstDayOfWeek(MONTHCAL_INFO *infoPtr, INT day)
static
LRESULT
MONTHCAL_GetMonthRange
(
const
MONTHCAL_INFO
*
infoPtr
)
MONTHCAL_GetMonthRange
(
const
MONTHCAL_INFO
*
infoPtr
,
DWORD
flag
,
SYSTEMTIME
*
st
)
{
TRACE
(
"
\n
"
);
if
(
st
)
{
if
(
flag
==
GMR_VISIBLE
)
{
/*FIXME: currently multicalendar feature isn't implelented, so entirely
visible month is current */
st
[
0
]
=
st
[
1
]
=
infoPtr
->
curSel
;
st
[
0
].
wDay
=
1
;
st
[
0
].
wDayOfWeek
=
MONTHCAL_CalculateDayOfWeek
(
1
,
st
[
0
].
wMonth
,
st
[
0
].
wYear
);
st
[
1
].
wDay
=
MONTHCAL_MonthLength
(
st
[
1
].
wMonth
,
st
[
1
].
wYear
);
st
[
1
].
wDayOfWeek
=
MONTHCAL_CalculateDayOfWeek
(
st
[
1
].
wDay
,
st
[
1
].
wMonth
,
st
[
1
].
wYear
);
}
else
FIXME
(
"only GMR_VISIBLE flag supported, got %d
\n
"
,
flag
);
}
return
infoPtr
->
monthRange
;
}
...
...
@@ -2053,7 +2072,7 @@ MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
MONTHCAL_SetSelRange
(
infoPtr
,
(
LPSYSTEMTIME
)
lParam
);
case
MCM_GETMONTHRANGE
:
return
MONTHCAL_GetMonthRange
(
infoPtr
);
return
MONTHCAL_GetMonthRange
(
infoPtr
,
wParam
,
(
SYSTEMTIME
*
)
lParam
);
case
MCM_SETDAYSTATE
:
return
MONTHCAL_SetDayState
(
infoPtr
,
(
INT
)
wParam
,
(
LPMONTHDAYSTATE
)
lParam
);
...
...
dlls/comctl32/tests/monthcal.c
View file @
96022da6
...
...
@@ -1323,10 +1323,13 @@ static void test_monthcal_monthrange(void)
res
=
SendMessage
(
hwnd
,
MCM_GETMONTHRANGE
,
GMR_VISIBLE
,
(
LPARAM
)
st_visible
);
todo_wine
{
expect
(
2
,
res
);
}
expect
(
2000
,
st_visible
[
0
].
wYear
);
expect
(
11
,
st_visible
[
0
].
wMonth
);
expect
(
1
,
st_visible
[
0
].
wDay
);
expect
(
2000
,
st_visible
[
1
].
wYear
);
todo_wine
{
expect
(
12
,
st_visible
[
1
].
wMonth
);
expect
(
31
,
st_visible
[
1
].
wDay
);
}
...
...
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