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
5e6b43e2
Commit
5e6b43e2
authored
May 20, 2005
by
James Hawkins
Committed by
Alexandre Julliard
May 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select the item under the point (x,y) in MouseHover.
parent
146be807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
listview.c
dlls/comctl32/listview.c
+27
-3
No files found.
dlls/comctl32/listview.c
View file @
5e6b43e2
...
...
@@ -3143,6 +3143,22 @@ static BOOL LISTVIEW_KeySelection(LISTVIEW_INFO *infoPtr, INT nItem)
return
bResult
;
}
static
BOOL
LISTVIEW_GetItemAtPt
(
LISTVIEW_INFO
*
infoPtr
,
LPLVITEMW
lpLVItem
,
POINT
pt
)
{
LVHITTESTINFO
lvHitTestInfo
;
ZeroMemory
(
&
lvHitTestInfo
,
sizeof
(
lvHitTestInfo
));
lvHitTestInfo
.
pt
.
x
=
pt
.
x
;
lvHitTestInfo
.
pt
.
y
=
pt
.
y
;
LISTVIEW_HitTest
(
infoPtr
,
&
lvHitTestInfo
,
TRUE
,
FALSE
);
lpLVItem
->
mask
=
LVIF_PARAM
;
lpLVItem
->
iItem
=
lvHitTestInfo
.
iItem
;
lpLVItem
->
iSubItem
=
0
;
return
LISTVIEW_GetItemT
(
infoPtr
,
lpLVItem
,
TRUE
);
}
/***
* DESCRIPTION:
...
...
@@ -3164,9 +3180,17 @@ static BOOL LISTVIEW_KeySelection(LISTVIEW_INFO *infoPtr, INT nItem)
*/
static
LRESULT
LISTVIEW_MouseHover
(
LISTVIEW_INFO
*
infoPtr
,
WORD
fwKyes
,
INT
x
,
INT
y
)
{
if
(
infoPtr
->
dwLvExStyle
&
LVS_EX_TRACKSELECT
)
/* FIXME: select the item!!! */
/*LISTVIEW_GetItemAtPt(infoPtr, pt)*/
;
if
(
infoPtr
->
dwLvExStyle
&
LVS_EX_TRACKSELECT
)
{
LVITEMW
item
;
POINT
pt
;
pt
.
x
=
x
;
pt
.
y
=
y
;
if
(
LISTVIEW_GetItemAtPt
(
infoPtr
,
&
item
,
pt
))
LISTVIEW_SetSelection
(
infoPtr
,
item
.
iItem
);
}
return
0
;
}
...
...
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