Author: ekohl
Date: Sat Jan 9 22:22:17 2016
New Revision: 70560
URL:
http://svn.reactos.org/svn/reactos?rev=70560&view=rev
Log:
[DEVMGR]
Set the focus to the treeview when the main window recieves a WM_ACTIVATE message.
CORE-10769 #resolve #comment Fixed in r70560.
Modified:
trunk/reactos/dll/win32/devmgr/devmgmt/DeviceView.cpp
trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp
trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.h
Modified: trunk/reactos/dll/win32/devmgr/devmgmt/DeviceView.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/D…
==============================================================================
--- trunk/reactos/dll/win32/devmgr/devmgmt/DeviceView.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/devmgr/devmgmt/DeviceView.cpp [iso-8859-1] Sat Jan 9 22:22:17
2016
@@ -291,6 +291,7 @@
void
CDeviceView::SetFocus()
{
+ ::SetFocus(m_hTreeView);
}
bool
Modified: trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/M…
==============================================================================
--- trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp [iso-8859-1] Sat Jan 9 22:22:17
2016
@@ -667,6 +667,12 @@
return RetCode;
}
+void
+CDeviceManager::OnActivate(void)
+{
+ m_DeviceView->SetFocus();
+}
+
LRESULT
CDeviceManager::OnDestroy(void)
{
@@ -822,7 +828,11 @@
DestroyWindow(hwnd);
break;
}
-
+
+ case WM_ACTIVATE:
+ if (LOWORD(hwnd))
+ This->OnActivate();
+ break;
case WM_DESTROY:
{
Modified: trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/M…
==============================================================================
--- trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/devmgr/devmgmt/MainWindow.h [iso-8859-1] Sat Jan 9 22:22:17
2016
@@ -66,6 +66,8 @@
LPARAM lParam
);
+ void OnActivate(void);
+
bool CreateToolBar(void);
bool CreateStatusBar(void);