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
94666ebf
Commit
94666ebf
authored
Jul 18, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Prepare MCM_GETMONTHRANGE with GMR_VISIBLE for multiple calendars.
parent
34fba5a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
monthcal.c
dlls/comctl32/monthcal.c
+10
-10
No files found.
dlls/comctl32/monthcal.c
View file @
94666ebf
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Copyright 1999 Chris Morgan <cmorgan@wpi.edu> and
* Copyright 1999 Chris Morgan <cmorgan@wpi.edu> and
* James Abbatiello <abbeyj@wpi.edu>
* James Abbatiello <abbeyj@wpi.edu>
* Copyright 2000 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* Copyright 2000 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* Copyright 2009 Nikolay Sivov
* Copyright 2009
, 2010
Nikolay Sivov
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -1241,7 +1241,8 @@ MONTHCAL_SetFirstDayOfWeek(MONTHCAL_INFO *infoPtr, INT day)
...
@@ -1241,7 +1241,8 @@ MONTHCAL_SetFirstDayOfWeek(MONTHCAL_INFO *infoPtr, INT day)
{
{
/* Native behaviour for that case is broken: invalid date number >31
/* Native behaviour for that case is broken: invalid date number >31
got displayed at (0,0) position, current month starts always from
got displayed at (0,0) position, current month starts always from
(1,0) position. Should be implemnted here as well. */
(1,0) position. Should be implemented here as well only if there's
nothing else to do. */
if
(
day
<
-
1
)
if
(
day
<
-
1
)
FIXME
(
"No bug compatibility for day=%d
\n
"
,
day
);
FIXME
(
"No bug compatibility for day=%d
\n
"
,
day
);
...
@@ -1261,19 +1262,18 @@ MONTHCAL_SetFirstDayOfWeek(MONTHCAL_INFO *infoPtr, INT day)
...
@@ -1261,19 +1262,18 @@ MONTHCAL_SetFirstDayOfWeek(MONTHCAL_INFO *infoPtr, INT day)
static
LRESULT
static
LRESULT
MONTHCAL_GetMonthRange
(
const
MONTHCAL_INFO
*
infoPtr
,
DWORD
flag
,
SYSTEMTIME
*
st
)
MONTHCAL_GetMonthRange
(
const
MONTHCAL_INFO
*
infoPtr
,
DWORD
flag
,
SYSTEMTIME
*
st
)
{
{
TRACE
(
"
\n
"
);
TRACE
(
"
flag=%d, st=%p
\n
"
,
flag
,
st
);
if
(
st
)
if
(
st
)
{
{
switch
(
flag
)
{
switch
(
flag
)
{
case
GMR_VISIBLE
:
case
GMR_VISIBLE
:
{
{
/*FIXME: currently multicalendar feature isn't implemented, so entirely
st
[
0
]
=
infoPtr
->
calendars
[
0
].
month
;
visible month is current */
st
[
1
]
=
infoPtr
->
calendars
[
infoPtr
->
cal_num
-
1
].
month
;
st
[
0
]
=
st
[
1
]
=
infoPtr
->
curSel
;
if
(
infoPtr
->
curSel
.
wMonth
==
min_allowed_date
.
wMonth
&&
if
(
st
[
0
]
.
wMonth
==
min_allowed_date
.
wMonth
&&
infoPtr
->
curSel
.
wYear
==
min_allowed_date
.
wYear
)
st
[
0
]
.
wYear
==
min_allowed_date
.
wYear
)
{
{
st
[
0
].
wDay
=
min_allowed_date
.
wDay
;
st
[
0
].
wDay
=
min_allowed_date
.
wDay
;
}
}
...
@@ -1283,8 +1283,8 @@ MONTHCAL_GetMonthRange(const MONTHCAL_INFO *infoPtr, DWORD flag, SYSTEMTIME *st)
...
@@ -1283,8 +1283,8 @@ MONTHCAL_GetMonthRange(const MONTHCAL_INFO *infoPtr, DWORD flag, SYSTEMTIME *st)
st
[
1
].
wDay
=
MONTHCAL_MonthLength
(
st
[
1
].
wMonth
,
st
[
1
].
wYear
);
st
[
1
].
wDay
=
MONTHCAL_MonthLength
(
st
[
1
].
wMonth
,
st
[
1
].
wYear
);
MONTHCAL_CalculateDayOfWeek
(
&
st
[
1
],
TRUE
);
MONTHCAL_CalculateDayOfWeek
(
&
st
[
1
],
TRUE
);
/* a single current month used */
return
1
;
return
infoPtr
->
cal_num
;
}
}
case
GMR_DAYSTATE
:
case
GMR_DAYSTATE
:
{
{
...
...
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