mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
[SHELL32] Update name in CDefView::LV_RenameItems
This commit is contained in:
parent
07640a9a21
commit
c04010c9ad
1 changed files with 2 additions and 1 deletions
|
@ -842,10 +842,11 @@ BOOLEAN CDefView::LV_RenameItem(PCUITEMID_CHILD pidlOld, PCUITEMID_CHILD pidlNew
|
||||||
m_ListView.GetItem(&lvItem);
|
m_ListView.GetItem(&lvItem);
|
||||||
|
|
||||||
SHFree(reinterpret_cast<LPVOID>(lvItem.lParam));
|
SHFree(reinterpret_cast<LPVOID>(lvItem.lParam));
|
||||||
lvItem.mask = LVIF_PARAM|LVIF_IMAGE;
|
lvItem.mask = LVIF_PARAM | LVIF_IMAGE | LVIF_TEXT;
|
||||||
lvItem.iItem = nItem;
|
lvItem.iItem = nItem;
|
||||||
lvItem.iSubItem = 0;
|
lvItem.iSubItem = 0;
|
||||||
lvItem.lParam = reinterpret_cast<LPARAM>(ILClone(pidlNew)); /* set the item's data */
|
lvItem.lParam = reinterpret_cast<LPARAM>(ILClone(pidlNew)); /* set the item's data */
|
||||||
|
lvItem.pszText = LPSTR_TEXTCALLBACKW;
|
||||||
lvItem.iImage = SHMapPIDLToSystemImageListIndex(m_pSFParent, pidlNew, 0);
|
lvItem.iImage = SHMapPIDLToSystemImageListIndex(m_pSFParent, pidlNew, 0);
|
||||||
m_ListView.SetItem(&lvItem);
|
m_ListView.SetItem(&lvItem);
|
||||||
m_ListView.Update(nItem);
|
m_ListView.Update(nItem);
|
||||||
|
|
Loading…
Reference in a new issue