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
bf7b0b89
Commit
bf7b0b89
authored
Apr 12, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Apr 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: monthcal: GetMonthRange Tests.
parent
1b0b5f56
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
monthcal.c
dlls/comctl32/tests/monthcal.c
+42
-0
No files found.
dlls/comctl32/tests/monthcal.c
View file @
bf7b0b89
...
...
@@ -244,6 +244,12 @@ static const struct message monthcal_scroll_seq[] = {
{
0
}
};
static
const
struct
message
monthcal_monthrange_seq
[]
=
{
{
MCM_GETMONTHRANGE
,
sent
|
wparam
,
GMR_VISIBLE
},
{
MCM_GETMONTHRANGE
,
sent
|
wparam
,
GMR_DAYSTATE
},
{
0
}
};
static
const
struct
message
monthcal_max_sel_day_seq
[]
=
{
{
MCM_SETMAXSELCOUNT
,
sent
|
wparam
|
lparam
,
5
,
0
},
{
MCM_GETMAXSELCOUNT
,
sent
|
wparam
|
lparam
,
0
,
0
},
...
...
@@ -959,6 +965,41 @@ static void test_monthcal_scroll(HWND hwnd)
ok_sequence
(
sequences
,
MONTHCAL_SEQ_INDEX
,
monthcal_scroll_seq
,
"monthcal scroll"
,
FALSE
);
}
static
void
test_monthcal_monthrange
(
HWND
hwnd
)
{
int
res
;
SYSTEMTIME
st_visible
[
2
],
st_daystate
[
2
];
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
st_visible
[
0
].
wYear
=
0
;
st_visible
[
0
].
wMonth
=
0
;
st_visible
[
0
].
wDay
=
0
;
st_daystate
[
1
]
=
st_daystate
[
0
]
=
st_visible
[
1
]
=
st_visible
[
0
];
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
);
expect
(
12
,
st_visible
[
1
].
wMonth
);
expect
(
31
,
st_visible
[
1
].
wDay
);
}
res
=
SendMessage
(
hwnd
,
MCM_GETMONTHRANGE
,
GMR_DAYSTATE
,
(
LPARAM
)
st_daystate
);
todo_wine
{
expect
(
4
,
res
);
expect
(
2000
,
st_daystate
[
0
].
wYear
);
expect
(
10
,
st_daystate
[
0
].
wMonth
);
expect
(
29
,
st_daystate
[
0
].
wDay
);
expect
(
2001
,
st_daystate
[
1
].
wYear
);
expect
(
1
,
st_daystate
[
1
].
wMonth
);
expect
(
6
,
st_daystate
[
1
].
wDay
);
}
ok_sequence
(
sequences
,
MONTHCAL_SEQ_INDEX
,
monthcal_monthrange_seq
,
"monthcal monthrange"
,
FALSE
);
}
static
void
test_monthcal_MaxSelDay
(
HWND
hwnd
)
{
int
res
;
...
...
@@ -1006,6 +1047,7 @@ START_TEST(monthcal)
test_monthcal_HitTest
(
hwnd
);
test_monthcal_today
(
hwnd
);
test_monthcal_scroll
(
hwnd
);
test_monthcal_monthrange
(
hwnd
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
DestroyWindow
(
hwnd
);
...
...
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