[REGEDIT] Make the UpdateStatusBar function actually update the statusbar, instead of sending garbage to the treeview. CORE-10803

svn path=/trunk/; revision=73452
This commit is contained in:
Mark Jansen 2016-12-13 21:47:22 +00:00
parent c88489858d
commit 80d548b608

View file

@ -178,10 +178,10 @@ void SetupStatusBar(HWND hWnd, BOOL bResize)
void UpdateStatusBar(void) void UpdateStatusBar(void)
{ {
NMHDR nmhdr; HKEY hKeyRoot;
ZeroMemory(&nmhdr, sizeof(NMHDR)); LPCWSTR pszKeyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hKeyRoot);
nmhdr.code = TVN_SELCHANGED;
SendMessageW(g_pChildWnd->hWnd, WM_NOTIFY, (WPARAM)TREE_WINDOW, (LPARAM)&nmhdr); SendMessageW(hStatusBar, SB_SETTEXTW, 0, (LPARAM)pszKeyPath);
} }
static void toggle_child(HWND hWnd, UINT cmd, HWND hchild) static void toggle_child(HWND hWnd, UINT cmd, HWND hchild)