[SHELL32]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Mon, 29 Dec 2014 12:24:03 +0000 (12:24 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Mon, 29 Dec 2014 12:24:03 +0000 (12:24 +0000)
* Give focus to the def view control when CDesktopBrowser gets focus.
CORE-8980

svn path=/trunk/; revision=65874

reactos/dll/win32/shell32/CDesktopBrowser.cpp

index 250dfb8..0d1d869 100644 (file)
@@ -525,6 +525,10 @@ LRESULT CALLBACK CDesktopBrowser::ProgmanWindowProc(IN HWND hwnd, IN UINT uMsg,
 
             case WM_COMMAND:
                 return pThis->OnCommand(uMsg, wParam, lParam);
+
+            case WM_SETFOCUS:
+                SetFocus(pThis->hWndShellView);
+                break;
             default:
 DefMsgHandler:
                 Ret = DefWindowProcW(hwnd, uMsg, wParam, lParam);