mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[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. svn path=/trunk/; revision=51715
This commit is contained in:
parent
7da47d32de
commit
8c50d36968
|
@ -415,6 +415,9 @@ ListDevicesByType(HWND hTreeView,
|
|||
(void)TreeView_SortChildren(hTreeView,
|
||||
hRoot,
|
||||
0);
|
||||
|
||||
(void)TreeView_SelectItem(hTreeView,
|
||||
hRoot);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -550,7 +550,13 @@ MainWndProc(HWND hwnd,
|
|||
/* Show the window */
|
||||
ShowWindow(hwnd,
|
||||
Info->nCmdShow);
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_SETFOCUS:
|
||||
{
|
||||
if (Info->hTreeView != NULL)
|
||||
SetFocus(Info->hTreeView);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue