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
0270e69b
Commit
0270e69b
authored
Apr 02, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Some tests for MCM_SIZERECTTOMIN.
parent
6d434706
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
monthcal.c
dlls/comctl32/tests/monthcal.c
+44
-0
commctrl.h
include/commctrl.h
+1
-0
No files found.
dlls/comctl32/tests/monthcal.c
View file @
0270e69b
...
...
@@ -1756,6 +1756,49 @@ static void test_get_set_border(void)
DestroyWindow
(
hwnd
);
}
static
void
test_MCM_SIZERECTTOMIN
(
void
)
{
HWND
hwnd
;
DWORD
ret
;
RECT
r
,
r2
;
hwnd
=
create_monthcal_control
(
0
);
ret
=
SendMessageA
(
hwnd
,
MCM_GETMINREQRECT
,
0
,
(
LPARAM
)
&
r2
);
if
(
ret
==
0
)
{
win_skip
(
"Message MCM_GETMINREQRECT unsupported. Skipping.
\n
"
);
DestroyWindow
(
hwnd
);
return
;
}
ret
=
SendMessageA
(
hwnd
,
MCM_SIZERECTTOMIN
,
0
,
0
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
r
.
left
=
r
.
right
=
r
.
top
=
r
.
bottom
=
0
;
ret
=
SendMessageA
(
hwnd
,
MCM_SIZERECTTOMIN
,
0
,
(
LPARAM
)
&
r
);
if
(
ret
==
0
)
{
skip
(
"Message MCM_SIZERECTTOMIN unsupported. Skipping.
\n
"
);
DestroyWindow
(
hwnd
);
return
;
}
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
ok
(
r
.
left
==
0
&&
r
.
right
>
0
,
"got %d, %d
\n
"
,
r
.
left
,
r
.
right
);
r
=
r2
;
ret
=
SendMessageA
(
hwnd
,
MCM_SIZERECTTOMIN
,
0
,
(
LPARAM
)
&
r
);
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
r2
.
right
=
(
r2
.
right
-
r2
.
left
)
*
3
;
r2
.
bottom
=
(
r2
.
bottom
-
r2
.
top
)
*
3
;
r2
.
left
=
r2
.
top
=
0
;
ret
=
SendMessageA
(
hwnd
,
MCM_SIZERECTTOMIN
,
0
,
(
LPARAM
)
&
r2
);
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
monthcal
)
{
BOOL
(
WINAPI
*
pInitCommonControlsEx
)(
const
INITCOMMONCONTROLSEX
*
);
...
...
@@ -1822,6 +1865,7 @@ START_TEST(monthcal)
test_hittest_v6
();
test_get_set_border
();
test_MCM_SIZERECTTOMIN
();
unload_v6_module
(
ctx_cookie
,
hCtx
);
...
...
include/commctrl.h
View file @
0270e69b
...
...
@@ -4689,6 +4689,7 @@ static const WCHAR MONTHCAL_CLASSW[] = { 'S','y','s',
#define MCM_GETMONTHDELTA (MCM_FIRST + 19)
#define MCM_SETMONTHDELTA (MCM_FIRST + 20)
#define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21)
#define MCM_SIZERECTTOMIN (MCM_FIRST + 29)
#define MCM_SETCALENDARBORDER (MCM_FIRST + 30)
#define MCM_GETCALENDARBORDER (MCM_FIRST + 31)
#define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
...
...
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