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
0d3b04d0
Commit
0d3b04d0
authored
Sep 20, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Implement MCM_GETCALENDARCOUNT.
parent
ceeafa18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
monthcal.c
dlls/comctl32/monthcal.c
+3
-0
monthcal.c
dlls/comctl32/tests/monthcal.c
+21
-0
commctrl.h
include/commctrl.h
+1
-0
No files found.
dlls/comctl32/monthcal.c
View file @
0d3b04d0
...
...
@@ -2809,6 +2809,9 @@ MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
MCM_GETUNICODEFORMAT
:
return
MONTHCAL_GetUnicodeFormat
(
infoPtr
);
case
MCM_GETCALENDARCOUNT
:
return
MONTHCAL_GetCalCount
(
infoPtr
);
case
WM_GETDLGCODE
:
return
DLGC_WANTARROWS
|
DLGC_WANTCHARS
;
...
...
dlls/comctl32/tests/monthcal.c
View file @
0d3b04d0
...
...
@@ -1799,6 +1799,26 @@ static void test_MCM_SIZERECTTOMIN(void)
DestroyWindow
(
hwnd
);
}
static
void
test_MCM_GETCALENDARCOUNT
(
void
)
{
HWND
hwnd
;
DWORD
ret
;
hwnd
=
create_monthcal_control
(
0
);
ret
=
SendMessageA
(
hwnd
,
MCM_GETCALENDARCOUNT
,
0
,
0
);
if
(
ret
==
0
)
{
win_skip
(
"Message MCM_GETCALENDARCOUNT unsupported. Skipping.
\n
"
);
DestroyWindow
(
hwnd
);
return
;
}
todo_wine
expect
(
2
,
ret
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
monthcal
)
{
BOOL
(
WINAPI
*
pInitCommonControlsEx
)(
const
INITCOMMONCONTROLSEX
*
);
...
...
@@ -1866,6 +1886,7 @@ START_TEST(monthcal)
test_hittest_v6
();
test_get_set_border
();
test_MCM_SIZERECTTOMIN
();
test_MCM_GETCALENDARCOUNT
();
unload_v6_module
(
ctx_cookie
,
hCtx
);
...
...
include/commctrl.h
View file @
0d3b04d0
...
...
@@ -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_GETCALENDARCOUNT (MCM_FIRST + 23)
#define MCM_SIZERECTTOMIN (MCM_FIRST + 29)
#define MCM_SETCALENDARBORDER (MCM_FIRST + 30)
#define MCM_GETCALENDARBORDER (MCM_FIRST + 31)
...
...
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