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
75fbef2d
Commit
75fbef2d
authored
Aug 29, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Return the number of visible months for MCM_GETMONTHDELTA.
parent
1bf936c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
monthcal.c
dlls/comctl32/monthcal.c
+2
-3
monthcal.c
dlls/comctl32/tests/monthcal.c
+3
-0
No files found.
dlls/comctl32/monthcal.c
View file @
75fbef2d
...
...
@@ -123,7 +123,6 @@ typedef struct
int
width_increment
;
INT
delta
;
/* scroll rate; # of months that the */
/* control moves when user clicks a scroll button */
int
visible
;
/* # of months visible */
int
firstDay
;
/* Start month calendar with firstDay's day,
stored in SYSTEMTIME format */
BOOL
firstDaySet
;
/* first week day differs from locale defined */
...
...
@@ -1302,8 +1301,8 @@ MONTHCAL_GetMonthDelta(const MONTHCAL_INFO *infoPtr)
if
(
infoPtr
->
delta
)
return
infoPtr
->
delta
;
else
return
infoPtr
->
visible
;
return
MONTHCAL_GetMonthRange
(
infoPtr
,
GMR_VISIBLE
,
NULL
)
;
}
...
...
dlls/comctl32/tests/monthcal.c
View file @
75fbef2d
...
...
@@ -1325,6 +1325,9 @@ static void test_scroll(void)
hwnd
=
create_monthcal_control
(
0
);
res
=
SendMessage
(
hwnd
,
MCM_GETMONTHDELTA
,
0
,
0
);
expect
(
2
,
res
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
/* Setter and Getters for scroll rate */
...
...
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