Author: ekohl
Date: Fri May 13 21:09:56 2011
New Revision: 51715
URL:
http://svn.reactos.org/svn/reactos?rev=51715&view=rev
Log:
[DEVMGMT]
- Set the focus for the treeview when the main window gets the focus.
- Select the root item after the devices tree has been built.
These changes enable the user to navigate the device tree using the keyboard.
Modified:
trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c
trunk/reactos/base/applications/mscutils/devmgmt/mainwnd.c
Modified: trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c [iso-8859-1] Fri May 13
21:09:56 2011
@@ -415,6 +415,9 @@
(void)TreeView_SortChildren(hTreeView,
hRoot,
0);
+
+ (void)TreeView_SelectItem(hTreeView,
+ hRoot);
}
Modified: trunk/reactos/base/applications/mscutils/devmgmt/mainwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/devmgmt/mainwnd.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/devmgmt/mainwnd.c [iso-8859-1] Fri May 13
21:09:56 2011
@@ -550,7 +550,13 @@
/* Show the window */
ShowWindow(hwnd,
Info->nCmdShow);
-
+ }
+ break;
+
+ case WM_SETFOCUS:
+ {
+ if (Info->hTreeView != NULL)
+ SetFocus(Info->hTreeView);
}
break;