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
e02d80b7
Commit
e02d80b7
authored
Feb 19, 2009
by
Igor Tarasov
Committed by
Alexandre Julliard
Feb 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Implement LVN_ODFINDITEM.
parent
73b490b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
listview.c
dlls/comctl32/listview.c
+33
-1
No files found.
dlls/comctl32/listview.c
View file @
e02d80b7
...
...
@@ -106,7 +106,6 @@
* -- LVN_GETINFOTIP
* -- LVN_HOTTRACK
* -- LVN_MARQUEEBEGIN
* -- LVN_ODFINDITEM
* -- LVN_SETDISPINFO
* -- NM_HOVER
* -- LVN_BEGINRDRAG
...
...
@@ -1574,6 +1573,28 @@ static INT LISTVIEW_ProcessLetterKeys(LISTVIEW_INFO *infoPtr, WPARAM charCode, L
endidx
=
infoPtr
->
nItemCount
;
idx
=
0
;
}
/* Let application handle this for virtual listview */
if
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
)
{
NMLVFINDITEMW
nmlv
;
LVFINDINFOW
lvfi
;
ZeroMemory
(
&
lvfi
,
sizeof
(
lvfi
));
lvfi
.
flags
=
(
LVFI_WRAP
|
LVFI_PARTIAL
);
infoPtr
->
szSearchParam
[
infoPtr
->
nSearchParamLength
]
=
'\0'
;
lvfi
.
psz
=
infoPtr
->
szSearchParam
;
nmlv
.
iStart
=
idx
;
nmlv
.
lvfi
=
lvfi
;
nItem
=
notify_hdr
(
infoPtr
,
LVN_ODFINDITEMW
,
(
LPNMHDR
)
&
nmlv
.
hdr
);
if
(
nItem
!=
-
1
)
LISTVIEW_KeySelection
(
infoPtr
,
nItem
);
return
0
;
}
do
{
if
(
idx
==
infoPtr
->
nItemCount
)
{
if
(
endidx
==
infoPtr
->
nItemCount
||
endidx
==
0
)
...
...
@@ -5075,6 +5096,17 @@ static INT LISTVIEW_FindItemW(const LISTVIEW_INFO *infoPtr, INT nStart,
POINT
Position
,
Destination
;
LVITEMW
lvItem
;
/* Search in virtual listviews should be done by application, not by
listview control, so we just send LVN_ODFINDITEMW and return the result */
if
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
)
{
NMLVFINDITEMW
nmlv
;
nmlv
.
iStart
=
nStart
;
nmlv
.
lvfi
=
*
lpFindInfo
;
return
notify_hdr
(
infoPtr
,
LVN_ODFINDITEMW
,
(
LPNMHDR
)
&
nmlv
.
hdr
);
}
if
(
!
lpFindInfo
||
nItem
<
0
)
return
-
1
;
lvItem
.
mask
=
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