Author: mjansen Date: Tue Dec 13 21:47:22 2016 New Revision: 73452
URL: http://svn.reactos.org/svn/reactos?rev=73452&view=rev Log: [REGEDIT] Make the UpdateStatusBar function actually update the statusbar, instead of sending garbage to the treeview. CORE-10803
Modified: trunk/reactos/base/applications/regedit/framewnd.c
Modified: trunk/reactos/base/applications/regedit/framewnd.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/f... ============================================================================== --- trunk/reactos/base/applications/regedit/framewnd.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/regedit/framewnd.c [iso-8859-1] Tue Dec 13 21:47:22 2016 @@ -178,10 +178,10 @@
void UpdateStatusBar(void) { - NMHDR nmhdr; - ZeroMemory(&nmhdr, sizeof(NMHDR)); - nmhdr.code = TVN_SELCHANGED; - SendMessageW(g_pChildWnd->hWnd, WM_NOTIFY, (WPARAM)TREE_WINDOW, (LPARAM)&nmhdr); + HKEY hKeyRoot; + LPCWSTR pszKeyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hKeyRoot); + + SendMessageW(hStatusBar, SB_SETTEXTW, 0, (LPARAM)pszKeyPath); }
static void toggle_child(HWND hWnd, UINT cmd, HWND hchild)