mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[DEVMGR]
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
This commit is contained in:
parent
2a5c5c0c76
commit
496764ad58
3 changed files with 14 additions and 1 deletions
|
@ -291,6 +291,7 @@ CDeviceView::DisplayPropertySheet()
|
|||
void
|
||||
CDeviceView::SetFocus()
|
||||
{
|
||||
::SetFocus(m_hTreeView);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -667,6 +667,12 @@ CDeviceManager::OnCommand(_In_ WPARAM wParam,
|
|||
return RetCode;
|
||||
}
|
||||
|
||||
void
|
||||
CDeviceManager::OnActivate(void)
|
||||
{
|
||||
m_DeviceView->SetFocus();
|
||||
}
|
||||
|
||||
LRESULT
|
||||
CDeviceManager::OnDestroy(void)
|
||||
{
|
||||
|
@ -822,7 +828,11 @@ CDeviceManager::MainWndProc(_In_ HWND hwnd,
|
|||
DestroyWindow(hwnd);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case WM_ACTIVATE:
|
||||
if (LOWORD(hwnd))
|
||||
This->OnActivate();
|
||||
break;
|
||||
|
||||
case WM_DESTROY:
|
||||
{
|
||||
|
|
|
@ -66,6 +66,8 @@ private:
|
|||
LPARAM lParam
|
||||
);
|
||||
|
||||
void OnActivate(void);
|
||||
|
||||
bool CreateToolBar(void);
|
||||
bool CreateStatusBar(void);
|
||||
|
||||
|
|
Loading…
Reference in a new issue