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
96ed854d
Commit
96ed854d
authored
Oct 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/datetime: Fix incorrect use of the ScreenToClient function.
parent
4b4c1a00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
datetime.c
dlls/comctl32/datetime.c
+8
-8
No files found.
dlls/comctl32/datetime.c
View file @
96ed854d
...
...
@@ -787,6 +787,7 @@ DATETIME_LButtonDown (DATETIME_INFO *infoPtr, INT x, INT y)
if
(
infoPtr
->
select
==
DTHT_MCPOPUP
)
{
RECT
rcMonthCal
;
POINT
pos
;
SendMessageW
(
infoPtr
->
hMonthCal
,
MCM_GETMINREQRECT
,
0
,
(
LPARAM
)
&
rcMonthCal
);
/* FIXME: button actually is only depressed during dropdown of the */
...
...
@@ -795,17 +796,16 @@ DATETIME_LButtonDown (DATETIME_INFO *infoPtr, INT x, INT y)
/* recalculate the position of the monthcal popup */
if
(
infoPtr
->
dwStyle
&
DTS_RIGHTALIGN
)
infoPtr
->
monthcal_pos
.
x
=
infoPtr
->
calbutton
.
left
-
(
rcMonthCal
.
right
-
rcMonthCal
.
left
);
pos
.
x
=
infoPtr
->
calbutton
.
left
-
(
rcMonthCal
.
right
-
rcMonthCal
.
left
);
else
/* FIXME: this should be after the area reserved for the checkbox */
infoPtr
->
monthcal_
pos
.
x
=
infoPtr
->
rcDraw
.
left
;
pos
.
x
=
infoPtr
->
rcDraw
.
left
;
infoPtr
->
monthcal_
pos
.
y
=
infoPtr
->
rcClient
.
bottom
;
ClientToScreen
(
infoPtr
->
hwndSelf
,
&
(
infoPtr
->
monthcal_pos
)
);
SetWindowPos
(
infoPtr
->
hMonthCal
,
0
,
infoPtr
->
monthcal_pos
.
x
,
infoPtr
->
monthcal_pos
.
y
,
rcMonthCal
.
right
-
rcMonthCal
.
left
,
rcMonthCal
.
bottom
-
rcMonthCal
.
top
,
0
);
pos
.
y
=
infoPtr
->
rcClient
.
bottom
;
OffsetRect
(
&
rcMonthCal
,
pos
.
x
,
pos
.
y
);
MapWindowPoints
(
infoPtr
->
hwndSelf
,
0
,
(
POINT
*
)
&
rcMonthCal
,
2
);
SetWindowPos
(
infoPtr
->
hMonthCal
,
0
,
rcMonthCal
.
left
,
rcMonthCal
.
top
,
rcMonthCal
.
right
-
rcMonthCal
.
left
,
rcMonthCal
.
bottom
-
rcMonthCal
.
top
,
0
);
if
(
IsWindowVisible
(
infoPtr
->
hMonthCal
))
{
ShowWindow
(
infoPtr
->
hMonthCal
,
SW_HIDE
);
...
...
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