- 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
(void)TreeView_SortChildren(hTreeView,
hRoot,
0);
+
+ (void)TreeView_SelectItem(hTreeView,
+ hRoot);
}
/* Show the window */
ShowWindow(hwnd,
Info->nCmdShow);
+ }
+ break;
+ case WM_SETFOCUS:
+ {
+ if (Info->hTreeView != NULL)
+ SetFocus(Info->hTreeView);
}
break;