From 5915b4970075e8ccbe87ddafae7f958bb1f732ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Mon, 25 Aug 2008 23:03:17 +0200 Subject: [PATCH] regedit: Use only SendMessageW in treeview.c. --- programs/regedit/treeview.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/regedit/treeview.c b/programs/regedit/treeview.c index 92c2af22ecb..12dd87a91e5 100644 --- a/programs/regedit/treeview.c +++ b/programs/regedit/treeview.c @@ -508,7 +508,7 @@ BOOL RefreshTreeView(HWND hwndTV) WINE_TRACE("\n"); hSelectedItem = TreeView_GetSelection(hwndTV); hcursorOld = SetCursor(LoadCursor(NULL, IDC_WAIT)); - SendMessage(hwndTV, WM_SETREDRAW, FALSE, 0); + SendMessageW(hwndTV, WM_SETREDRAW, FALSE, 0); hItem = TreeView_GetChild(hwndTV, TreeView_GetRoot(hwndTV)); while (hItem) { @@ -516,12 +516,12 @@ BOOL RefreshTreeView(HWND hwndTV) hItem = TreeView_GetNextSibling(hwndTV, hItem); } - SendMessage(hwndTV, WM_SETREDRAW, TRUE, 0); + SendMessageW(hwndTV, WM_SETREDRAW, TRUE, 0); InvalidateRect(hwndTV, NULL, FALSE); SetCursor(hcursorOld); /* We reselect the currently selected node, this will prompt a refresh of the listview. */ - SendMessage(hwndTV, TVM_SELECTITEM, TVGN_CARET, (LPARAM)hSelectedItem); + SendMessageW(hwndTV, TVM_SELECTITEM, TVGN_CARET, (LPARAM)hSelectedItem); return TRUE; } @@ -697,7 +697,7 @@ BOOL UpdateExpandingTree(HWND hwndTV, HTREEITEM hItem, int state) done: TreeView_SetItemState(hwndTV, hItem, TVIS_EXPANDEDONCE, TVIS_EXPANDEDONCE); - SendMessage(hwndTV, WM_SETREDRAW, TRUE, 0); + SendMessageW(hwndTV, WM_SETREDRAW, TRUE, 0); SetCursor(hcursorOld); expanding = FALSE; HeapFree(GetProcessHeap(), 0, keyPath);