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
e5cd5a77
Commit
e5cd5a77
authored
Sep 22, 2003
by
Maxime Bellengé
Committed by
Alexandre Julliard
Sep 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When an item is activated, we should send a NMITEMACTIVATE struct and
not a NMHDR one.
parent
7d2aefd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
listview.c
dlls/comctl32/listview.c
+30
-3
No files found.
dlls/comctl32/listview.c
View file @
e5cd5a77
...
...
@@ -735,9 +735,36 @@ static inline LRESULT notify(LISTVIEW_INFO *infoPtr, INT code)
return
notify_hdr
(
infoPtr
,
code
,
&
nmh
);
}
static
inline
void
notify_itemactivate
(
LISTVIEW_INFO
*
infoPtr
)
static
inline
void
notify_itemactivate
(
LISTVIEW_INFO
*
infoPtr
,
LVHITTESTINFO
*
htInfo
)
{
notify
(
infoPtr
,
LVN_ITEMACTIVATE
);
NMITEMACTIVATE
nmia
;
LVITEMW
item
;
if
(
htInfo
)
{
nmia
.
uNewState
=
0
;
nmia
.
uOldState
=
0
;
nmia
.
uChanged
=
0
;
nmia
.
uKeyFlags
=
0
;
item
.
mask
=
LVIF_PARAM
|
LVIF_STATE
;
item
.
iItem
=
htInfo
->
iItem
;
item
.
iSubItem
=
0
;
if
(
LISTVIEW_GetItemT
(
infoPtr
,
&
item
,
TRUE
))
{
nmia
.
lParam
=
item
.
lParam
;
nmia
.
uOldState
=
item
.
state
;
nmia
.
uNewState
=
item
.
state
|
LVIS_ACTIVATING
;
nmia
.
uChanged
=
LVIF_STATE
;
}
nmia
.
iItem
=
htInfo
->
iItem
;
nmia
.
iSubItem
=
htInfo
->
iSubItem
;
nmia
.
ptAction
=
htInfo
->
pt
;
if
(
GetKeyState
(
VK_SHIFT
)
&
0x8000
)
nmia
.
uKeyFlags
|=
LVKF_SHIFT
;
if
(
GetKeyState
(
VK_CONTROL
)
&
0x8000
)
nmia
.
uKeyFlags
|=
LVKF_CONTROL
;
if
(
GetKeyState
(
VK_MENU
)
&
0x8000
)
nmia
.
uKeyFlags
|=
LVKF_ALT
;
}
notify_hdr
(
infoPtr
,
LVN_ITEMACTIVATE
,
(
LPNMHDR
)
&
nmia
);
}
static
inline
LRESULT
notify_listview
(
LISTVIEW_INFO
*
infoPtr
,
INT
code
,
LPNMLISTVIEW
plvnm
)
...
...
@@ -7677,7 +7704,7 @@ static LRESULT LISTVIEW_LButtonDblClk(LISTVIEW_INFO *infoPtr, WORD wKey, POINTS
notify_click
(
infoPtr
,
NM_DBLCLK
,
&
htInfo
);
/* To send the LVN_ITEMACTIVATE, it must be on an Item */
if
(
htInfo
.
iItem
!=
-
1
)
notify
(
infoPtr
,
LVN_ITEMACTIVATE
);
if
(
htInfo
.
iItem
!=
-
1
)
notify
_itemactivate
(
infoPtr
,
&
htInfo
);
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