[REGEDIT] Make the UpdateStatusBar function actually update the statusbar, instead...
authorMark Jansen <mark.jansen@reactos.org>
Tue, 13 Dec 2016 21:47:22 +0000 (21:47 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Tue, 13 Dec 2016 21:47:22 +0000 (21:47 +0000)
svn path=/trunk/; revision=73452

reactos/base/applications/regedit/framewnd.c

index 254c126..2f02550 100644 (file)
@@ -178,10 +178,10 @@ void SetupStatusBar(HWND hWnd, BOOL bResize)
 
 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)