forked from Mirrors/wine-wine
shell32/shellview: Set subitem callbacks for every column.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
a26d6e375e
commit
2cce196210
|
@ -562,22 +562,29 @@ static int LV_FindItemByPidl(
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************
|
static void shellview_add_item(IShellViewImpl *shellview, LPCITEMIDLIST pidl)
|
||||||
* LV_AddItem()
|
|
||||||
*/
|
|
||||||
static void shellview_add_item(IShellViewImpl * This, 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*/
|
item.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM;
|
||||||
lvItem.iItem = 0;
|
item.iItem = 0;
|
||||||
lvItem.iSubItem = 0;
|
item.iSubItem = 0;
|
||||||
lvItem.lParam = (LPARAM)pidl;
|
item.lParam = (LPARAM)pidl;
|
||||||
lvItem.pszText = LPSTR_TEXTCALLBACKW; /*get text on a callback basis*/
|
item.pszText = LPSTR_TEXTCALLBACKW;
|
||||||
lvItem.iImage = I_IMAGECALLBACK; /*get the image on a callback basis*/
|
item.iImage = I_IMAGECALLBACK;
|
||||||
ListView_InsertItemW(This->hWndList, &lvItem);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************
|
/**********************************************************
|
||||||
|
|
Loading…
Reference in New Issue