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
abc0686f
Commit
abc0686f
authored
May 25, 2001
by
Gerard Patel
Committed by
Alexandre Julliard
May 25, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented DTM_GET/SETRANGE.
parent
fc99ddd9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
datetime.c
dlls/comctl32/datetime.c
+26
-6
No files found.
dlls/comctl32/datetime.c
View file @
abc0686f
...
...
@@ -139,6 +139,28 @@ DATETIME_SetSystemTime (HWND hwnd, WPARAM wParam, LPARAM lParam )
static
LRESULT
DATETIME_GetRange
(
HWND
hwnd
,
LPARAM
lParam
)
{
DATETIME_INFO
*
infoPtr
=
DATETIME_GetInfoPtr
(
hwnd
);
LRESULT
ret
;
TRACE
(
"%08lx
\n
"
,
lParam
);
ret
=
SendMessageA
(
infoPtr
->
hMonthCal
,
MCM_GETRANGE
,
0
,
lParam
);
if
(
!
ret
)
ret
=
1
;
/* bug emulation... */
return
ret
;
}
static
LRESULT
DATETIME_SetRange
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
DATETIME_INFO
*
infoPtr
=
DATETIME_GetInfoPtr
(
hwnd
);
TRACE
(
"%04x %08lx
\n
"
,
wParam
,
lParam
);
return
SendMessageA
(
infoPtr
->
hMonthCal
,
MCM_SETRANGE
,
wParam
,
lParam
);
}
static
LRESULT
DATETIME_GetMonthCalColor
(
HWND
hwnd
,
WPARAM
wParam
)
{
DATETIME_INFO
*
infoPtr
=
DATETIME_GetInfoPtr
(
hwnd
);
...
...
@@ -1179,18 +1201,16 @@ DATETIME_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
case
DTM_GETSYSTEMTIME
:
DATETIME_GetSystemTime
(
hwnd
,
wParam
,
lParam
);
return
DATETIME_GetSystemTime
(
hwnd
,
wParam
,
lParam
);
case
DTM_SETSYSTEMTIME
:
DATETIME_SetSystemTime
(
hwnd
,
wParam
,
lParam
);
return
DATETIME_SetSystemTime
(
hwnd
,
wParam
,
lParam
);
case
DTM_GETRANGE
:
FIXME
(
"Unimplemented msg DTM_GETRANGE
\n
"
);
return
0
;
return
DATETIME_GetRange
(
hwnd
,
lParam
);
case
DTM_SETRANGE
:
FIXME
(
"Unimplemented msg DTM_SETRANGE
\n
"
);
return
1
;
return
DATETIME_SetRange
(
hwnd
,
wParam
,
lParam
);
case
DTM_SETFORMATA
:
return
DATETIME_SetFormat
(
hwnd
,
wParam
,
lParam
);
...
...
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