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
e81f2642
Commit
e81f2642
authored
Dec 12, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Implement NM_SETCURSOR notification.
parent
49dabfe3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
treeview.c
dlls/comctl32/treeview.c
+16
-2
No files found.
dlls/comctl32/treeview.c
View file @
e81f2642
...
...
@@ -28,7 +28,7 @@
* We use callbackMask to keep track of fields to be updated.
*
* TODO:
* missing notifications:
NM_SETCURSOR,
TVN_GETINFOTIP, TVN_KEYDOWN,
* missing notifications: TVN_GETINFOTIP, TVN_KEYDOWN,
* TVN_SETDISPINFO, TVN_SINGLEEXPAND
*
* missing styles: TVS_FULLROWSELECT, TVS_INFOTIP, TVS_RTLREADING,
...
...
@@ -5449,13 +5449,27 @@ TREEVIEW_SetCursor(const TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
{
POINT
pt
;
TREEVIEW_ITEM
*
item
;
NMMOUSE
nmmouse
;
GetCursorPos
(
&
pt
);
ScreenToClient
(
infoPtr
->
hwnd
,
&
pt
);
item
=
TREEVIEW_HitTestPoint
(
infoPtr
,
pt
);
/* FIXME: send NM_SETCURSOR */
memset
(
&
nmmouse
,
0
,
sizeof
(
nmmouse
));
nmmouse
.
hdr
.
hwndFrom
=
infoPtr
->
hwnd
;
nmmouse
.
hdr
.
idFrom
=
GetWindowLongPtrW
(
infoPtr
->
hwnd
,
GWLP_ID
);
nmmouse
.
hdr
.
code
=
NM_SETCURSOR
;
if
(
item
)
{
nmmouse
.
dwItemSpec
=
(
DWORD_PTR
)
item
;
nmmouse
.
dwItemData
=
item
->
lParam
;
}
nmmouse
.
pt
.
x
=
0
;
nmmouse
.
pt
.
y
=
0
;
nmmouse
.
dwHitInfo
=
lParam
;
if
(
TREEVIEW_SendRealNotify
(
infoPtr
,
nmmouse
.
hdr
.
idFrom
,
(
LPARAM
)
&
nmmouse
))
return
0
;
if
(
item
&&
(
infoPtr
->
dwStyle
&
TVS_TRACKSELECT
))
{
...
...
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