Hugh McMaster : regedit: Update a value name without refreshing the listview.
Alexandre Julliard
julliard at winehq.org
Tue May 30 16:05:14 CDT 2017
Module: wine
Branch: master
Commit: ebfe566c16e39604eee0abcdd1ca706926e4d304
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ebfe566c16e39604eee0abcdd1ca706926e4d304
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Mon May 29 08:20:23 2017 +0000
regedit: Update a value name without refreshing the listview.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/regedit/listview.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index b42af8e..e485c77 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -400,16 +400,13 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
LPNMLVDISPINFOW dispInfo = (LPNMLVDISPINFOW)lParam;
LPWSTR oldName = GetItemText(hWnd, dispInfo->item.iItem);
LONG ret;
- LVITEMW item;
if (!oldName) return -1; /* cannot rename a default value */
ret = RenameValue(hWnd, g_currentRootKey, g_currentPath, oldName, dispInfo->item.pszText);
if (ret)
{
- RefreshListView(hWnd, g_currentRootKey, g_currentPath, dispInfo->item.pszText);
- item.state = LVIS_FOCUSED | LVIS_SELECTED;
- item.stateMask = LVIS_FOCUSED | LVIS_SELECTED;
- SendMessageW(hWnd, LVM_SETITEMSTATE, dispInfo->item.iItem, (LPARAM)&item);
+ dispInfo->item.iSubItem = 0;
+ SendMessageW(hWnd, LVM_SETITEMTEXTW, dispInfo->item.iItem, (LPARAM)&dispInfo->item);
}
HeapFree(GetProcessHeap(), 0, oldName);
return 0;
More information about the wine-cvs
mailing list