Author: cwittich Date: Sat Jul 28 23:43:22 2007 New Revision: 27968
URL: http://svn.reactos.org/svn/reactos?rev=27968&view=rev Log: 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.
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 (original) +++ trunk/reactos/base/applications/regedit/framewnd.c Sat Jul 28 23:43:22 2007 @@ -171,12 +171,10 @@
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)