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
2cce1962
Commit
2cce1962
authored
Jan 25, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/shellview: Set subitem callbacks for every column.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a26d6e37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
shlview.c
dlls/shell32/shlview.c
+20
-13
No files found.
dlls/shell32/shlview.c
View file @
2cce1962
...
...
@@ -562,22 +562,29 @@ static int LV_FindItemByPidl(
return
-
1
;
}
/**********************************************************
* LV_AddItem()
*/
static
void
shellview_add_item
(
IShellViewImpl
*
This
,
LPCITEMIDLIST
pidl
)
static
void
shellview_add_item
(
IShellViewImpl
*
shellview
,
LPCITEMIDLIST
pidl
)
{
LVITEMW
lvItem
;
LVITEMW
item
;
UINT
i
;
TRACE
(
"(%p)(pidl=%p)
\n
"
,
This
,
pidl
);
TRACE
(
"(%p)(pidl=%p)
\n
"
,
shellview
,
pidl
);
lvItem
.
mask
=
LVIF_TEXT
|
LVIF_IMAGE
|
LVIF_PARAM
;
/*set the mask*/
lvItem
.
iItem
=
0
;
lvItem
.
iSubItem
=
0
;
lvItem
.
lParam
=
(
LPARAM
)
pidl
;
lvItem
.
pszText
=
LPSTR_TEXTCALLBACKW
;
/*get text on a callback basis*/
lvItem
.
iImage
=
I_IMAGECALLBACK
;
/*get the image on a callback basis*/
ListView_InsertItemW
(
This
->
hWndList
,
&
lvItem
);
item
.
mask
=
LVIF_TEXT
|
LVIF_IMAGE
|
LVIF_PARAM
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
item
.
lParam
=
(
LPARAM
)
pidl
;
item
.
pszText
=
LPSTR_TEXTCALLBACKW
;
item
.
iImage
=
I_IMAGECALLBACK
;
SendMessageW
(
shellview
->
hWndList
,
LVM_INSERTITEMW
,
0
,
(
LPARAM
)
&
item
);
for
(
i
=
1
;
i
<
shellview
->
columns
;
i
++
)
{
item
.
mask
=
LVIF_TEXT
;
item
.
iItem
=
0
;
item
.
iSubItem
=
1
;
item
.
pszText
=
LPSTR_TEXTCALLBACKW
;
SendMessageW
(
shellview
->
hWndList
,
LVM_SETITEMW
,
0
,
(
LPARAM
)
&
item
);
}
}
/**********************************************************
...
...
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