regedit: Sort treeview children on refresh.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-02-09 11:12:14 +00:00 committed by Alexandre Julliard
parent e23ca416bd
commit 7073e27fbd
1 changed files with 1 additions and 0 deletions

View File

@ -482,6 +482,7 @@ BOOL RefreshTreeView(HWND hwndTV)
SendMessageW(hwndTV, WM_SETREDRAW, TRUE, 0);
InvalidateRect(hwndTV, NULL, FALSE);
SendMessageW(hwndTV, TVM_SORTCHILDREN, TRUE, (LPARAM)hSelectedItem);
SetCursor(hcursorOld);
/* We reselect the currently selected node, this will prompt a refresh of the listview. */