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
7e128410
Commit
7e128410
authored
Oct 28, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Oct 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly fill lParam in NMLISTVIEW.
parent
173d40a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
listview.c
dlls/comctl32/listview.c
+21
-9
No files found.
dlls/comctl32/listview.c
View file @
7e128410
...
...
@@ -720,15 +720,34 @@ static inline LRESULT notify_listview(LISTVIEW_INFO *infoPtr, INT code, LPNMLIST
static
LRESULT
notify_click
(
LISTVIEW_INFO
*
infoPtr
,
INT
code
,
LVHITTESTINFO
*
lvht
)
{
NMLISTVIEW
nmlv
;
LVITEMW
item
;
TRACE
(
"code=%d, lvht=%s
\n
"
,
code
,
debuglvhittestinfo
(
lvht
));
ZeroMemory
(
&
nmlv
,
sizeof
(
nmlv
));
nmlv
.
iItem
=
lvht
->
iItem
;
nmlv
.
iSubItem
=
lvht
->
iSubItem
;
nmlv
.
ptAction
=
lvht
->
pt
;
item
.
mask
=
LVIF_PARAM
;
item
.
iItem
=
lvht
->
iItem
;
item
.
iSubItem
=
0
;
if
(
LISTVIEW_GetItemT
(
infoPtr
,
&
item
,
TRUE
))
nmlv
.
lParam
=
item
.
lParam
;
return
notify_listview
(
infoPtr
,
code
,
&
nmlv
);
}
static
void
notify_deleteitem
(
LISTVIEW_INFO
*
infoPtr
,
INT
nItem
)
{
NMLISTVIEW
nmlv
;
LVITEMW
item
;
ZeroMemory
(
&
nmlv
,
sizeof
(
NMLISTVIEW
));
nmlv
.
iItem
=
nItem
;
item
.
mask
=
LVIF_PARAM
;
item
.
iItem
=
nItem
;
item
.
iSubItem
=
0
;
if
(
LISTVIEW_GetItemT
(
infoPtr
,
&
item
,
TRUE
))
nmlv
.
lParam
=
item
.
lParam
;
notify_listview
(
infoPtr
,
LVN_DELETEITEM
,
&
nmlv
);
}
static
int
get_ansi_notification
(
INT
unicodeNotificationCode
)
{
switch
(
unicodeNotificationCode
)
...
...
@@ -3901,11 +3920,7 @@ static BOOL LISTVIEW_DeleteAllItems(LISTVIEW_INFO *infoPtr)
for
(
i
=
infoPtr
->
nItemCount
-
1
;
i
>=
0
;
i
--
)
{
/* send LVN_DELETEITEM notification, if not supressed */
if
(
!
bSuppress
)
{
nmlv
.
iItem
=
i
;
notify_listview
(
infoPtr
,
LVN_DELETEITEM
,
&
nmlv
);
}
if
(
!
bSuppress
)
notify_deleteitem
(
infoPtr
,
i
);
if
(
!
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
))
{
hdpaSubItems
=
(
HDPA
)
DPA_GetPtr
(
infoPtr
->
hdpaItems
,
i
);
...
...
@@ -4147,7 +4162,6 @@ static void LISTVIEW_ScrollOnInsert(LISTVIEW_INFO *infoPtr, INT nItem, INT dir)
static
BOOL
LISTVIEW_DeleteItem
(
LISTVIEW_INFO
*
infoPtr
,
INT
nItem
)
{
UINT
uView
=
infoPtr
->
dwStyle
&
LVS_TYPEMASK
;
NMLISTVIEW
nmlv
;
LVITEMW
item
;
TRACE
(
"(nItem=%d)
\n
"
,
nItem
);
...
...
@@ -4160,9 +4174,7 @@ static BOOL LISTVIEW_DeleteItem(LISTVIEW_INFO *infoPtr, INT nItem)
LISTVIEW_SetItemState
(
infoPtr
,
nItem
,
&
item
);
/* send LVN_DELETEITEM notification. */
ZeroMemory
(
&
nmlv
,
sizeof
(
NMLISTVIEW
));
nmlv
.
iItem
=
nItem
;
notify_listview
(
infoPtr
,
LVN_DELETEITEM
,
&
nmlv
);
notify_deleteitem
(
infoPtr
,
nItem
);
/* we need to do this here, because we'll be deleting stuff */
if
(
uView
==
LVS_SMALLICON
||
uView
==
LVS_ICON
)
...
...
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