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
6fb16fca
Commit
6fb16fca
authored
Apr 09, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Apr 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix first day of the week in monthcal.
parent
824e452a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
monthcal.c
dlls/comctl32/monthcal.c
+16
-5
No files found.
dlls/comctl32/monthcal.c
View file @
6fb16fca
...
...
@@ -94,6 +94,7 @@ typedef struct
/* control moves when user clicks a scroll button */
int
visible
;
/* # of months visible */
int
firstDay
;
/* Start month calendar with firstDay's day */
int
firstDayHighWord
;
/* High word only used externally */
int
monthRange
;
MONTHDAYSTATE
*
monthdayState
;
SYSTEMTIME
todaysDate
;
...
...
@@ -885,7 +886,7 @@ MONTHCAL_SetMonthDelta(MONTHCAL_INFO *infoPtr, WPARAM wParam)
static
LRESULT
MONTHCAL_GetFirstDayOfWeek
(
const
MONTHCAL_INFO
*
infoPtr
)
{
return
infoPtr
->
firstDay
;
return
MAKELONG
(
infoPtr
->
firstDay
,
infoPtr
->
firstDayHighWord
)
;
}
...
...
@@ -896,7 +897,7 @@ MONTHCAL_GetFirstDayOfWeek(const MONTHCAL_INFO *infoPtr)
static
LRESULT
MONTHCAL_SetFirstDayOfWeek
(
MONTHCAL_INFO
*
infoPtr
,
LPARAM
lParam
)
{
int
prev
=
infoPtr
->
firstDay
;
int
prev
=
MAKELONG
(
infoPtr
->
firstDay
,
infoPtr
->
firstDayHighWord
)
;
int
localFirstDay
;
WCHAR
buf
[
40
];
...
...
@@ -908,11 +909,20 @@ MONTHCAL_SetFirstDayOfWeek(MONTHCAL_INFO *infoPtr, LPARAM lParam)
localFirstDay
=
atoiW
(
buf
);
if
(
lParam
==
-
1
)
infoPtr
->
firstDay
=
MAKELONG
(
localFirstDay
,
FALSE
);
{
infoPtr
->
firstDay
=
localFirstDay
;
infoPtr
->
firstDayHighWord
=
FALSE
;
}
else
if
(
lParam
>=
7
)
infoPtr
->
firstDay
=
MAKELONG
(
localFirstDay
,
TRUE
);
{
infoPtr
->
firstDay
=
localFirstDay
;
infoPtr
->
firstDayHighWord
=
TRUE
;
}
else
infoPtr
->
firstDay
=
MAKELONG
(
lParam
,
TRUE
);
{
infoPtr
->
firstDay
=
lParam
;
infoPtr
->
firstDayHighWord
=
TRUE
;
}
return
prev
;
}
...
...
@@ -1879,6 +1889,7 @@ MONTHCAL_Create(HWND hwnd, WPARAM wParam, LPARAM lParam)
/* FIXME: calculate systemtime ->> localtime(substract timezoneinfo) */
GetLocalTime
(
&
infoPtr
->
todaysDate
);
infoPtr
->
firstDayHighWord
=
FALSE
;
MONTHCAL_SetFirstDayOfWeek
(
infoPtr
,
(
LPARAM
)
-
1
);
infoPtr
->
currentMonth
=
infoPtr
->
todaysDate
.
wMonth
;
infoPtr
->
currentYear
=
infoPtr
->
todaysDate
.
wYear
;
...
...
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