Set the focus to the treeview when the main window recieves a WM_ACTIVATE message.
CORE-10769 #resolve #comment Fixed in r70560.
svn path=/trunk/; revision=70560
void
CDeviceView::SetFocus()
{
+ ::SetFocus(m_hTreeView);
}
bool
return RetCode;
}
+void
+CDeviceManager::OnActivate(void)
+{
+ m_DeviceView->SetFocus();
+}
+
LRESULT
CDeviceManager::OnDestroy(void)
{
DestroyWindow(hwnd);
break;
}
-
+
+ case WM_ACTIVATE:
+ if (LOWORD(hwnd))
+ This->OnActivate();
+ break;
case WM_DESTROY:
{
LPARAM lParam
);
+ void OnActivate(void);
+
bool CreateToolBar(void);
bool CreateStatusBar(void);