From 518d4a68856eb23dc754cfd7c23abb220eedf2c0 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sat, 28 Jul 2007 19:43:22 +0000 Subject: [PATCH] display path in statusbar again when a menu is closed (doesn't seem to work properly on ReactOS yet) See issue #2495 for more details. svn path=/trunk/; revision=27968 --- reactos/base/applications/regedit/framewnd.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/reactos/base/applications/regedit/framewnd.c b/reactos/base/applications/regedit/framewnd.c index 7552dd7001b..5f09e17cff0 100644 --- a/reactos/base/applications/regedit/framewnd.c +++ b/reactos/base/applications/regedit/framewnd.c @@ -171,12 +171,10 @@ void SetupStatusBar(HWND hWnd, BOOL bResize) void UpdateStatusBar(void) { - TCHAR text[260]; - DWORD size; - - size = sizeof(text)/sizeof(TCHAR); - GetComputerName(text, &size); - SendMessage(hStatusBar, SB_SETTEXT, 0, (LPARAM)text); + NMHDR nmhdr; + ZeroMemory(&nmhdr, sizeof(NMHDR)); + nmhdr.code = TVN_SELCHANGED; + SendMessage(g_pChildWnd->hWnd, WM_NOTIFY, (WPARAM)TREE_WINDOW, (LPARAM)&nmhdr); } static void toggle_child(HWND hWnd, UINT cmd, HWND hchild)