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
89f0bdff
Commit
89f0bdff
authored
Jun 14, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Fix some hittest problems on LVS_EX_FULLROWSELECT.
parent
8372d183
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
listview.c
dlls/comctl32/listview.c
+7
-1
No files found.
dlls/comctl32/listview.c
View file @
89f0bdff
...
@@ -6643,6 +6643,8 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
...
@@ -6643,6 +6643,8 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
/* for top/bottom only */
/* for top/bottom only */
bounds
.
left
=
LVIR_BOUNDS
;
bounds
.
left
=
LVIR_BOUNDS
;
LISTVIEW_GetItemRect
(
infoPtr
,
iItem
,
&
bounds
);
LISTVIEW_GetItemRect
(
infoPtr
,
iItem
,
&
bounds
);
opt
.
x
=
lpht
->
pt
.
x
-
Origin
.
x
;
opt
.
y
=
lpht
->
pt
.
y
;
for
(
j
=
0
;
j
<
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
);
j
++
)
for
(
j
=
0
;
j
<
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
);
j
++
)
{
{
...
@@ -6650,7 +6652,7 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
...
@@ -6650,7 +6652,7 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
bounds
.
left
=
pRect
->
left
;
bounds
.
left
=
pRect
->
left
;
bounds
.
right
=
pRect
->
right
;
bounds
.
right
=
pRect
->
right
;
if
(
PtInRect
(
&
bounds
,
lpht
->
pt
))
if
(
PtInRect
(
&
bounds
,
o
pt
))
{
{
lpht
->
iSubItem
=
j
;
lpht
->
iSubItem
=
j
;
break
;
break
;
...
@@ -6676,7 +6678,11 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
...
@@ -6676,7 +6678,11 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
opt
.
y
=
lpht
->
pt
.
y
-
Position
.
y
-
Origin
.
y
;
opt
.
y
=
lpht
->
pt
.
y
-
Position
.
y
-
Origin
.
y
;
if
(
infoPtr
->
uView
==
LV_VIEW_DETAILS
)
if
(
infoPtr
->
uView
==
LV_VIEW_DETAILS
)
{
rcBounds
=
rcBox
;
rcBounds
=
rcBox
;
if
(
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
)
opt
.
x
=
lpht
->
pt
.
x
-
Origin
.
x
;
}
else
else
{
{
UnionRect
(
&
rcBounds
,
&
rcIcon
,
&
rcLabel
);
UnionRect
(
&
rcBounds
,
&
rcIcon
,
&
rcLabel
);
...
...
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