mirror of
https://github.com/reactos/reactos.git
synced 2025-05-14 23:03:53 +00:00
[BROWSEUI]
* Forward focus to the defview window when the shell browser gets the focus. * We can now navigate to the opened window with the keyboard right after it opens. That means that after opening from the desktop a window with the keyboard, we can navigate right away without any additional mouse clicks. svn path=/trunk/; revision=65775
This commit is contained in:
parent
2a420776e0
commit
155eb2f79c
1 changed files with 8 additions and 0 deletions
|
@ -591,6 +591,7 @@ public:
|
|||
LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
|
||||
LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
|
||||
LRESULT OnInitMenuPopup(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
|
||||
LRESULT OnSetFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
|
||||
LRESULT RelayMsgToShellView(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
|
||||
LRESULT OnClose(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled);
|
||||
LRESULT OnFolderOptions(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled);
|
||||
|
@ -631,6 +632,7 @@ public:
|
|||
MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
|
||||
MESSAGE_HANDLER(WM_SIZE, OnSize)
|
||||
MESSAGE_HANDLER(WM_INITMENUPOPUP, OnInitMenuPopup)
|
||||
MESSAGE_HANDLER(WM_SETFOCUS, OnSetFocus)
|
||||
MESSAGE_HANDLER(WM_MEASUREITEM, RelayMsgToShellView)
|
||||
MESSAGE_HANDLER(WM_DRAWITEM, RelayMsgToShellView)
|
||||
MESSAGE_HANDLER(WM_MENUSELECT, RelayMsgToShellView)
|
||||
|
@ -3164,6 +3166,12 @@ LRESULT CShellBrowser::OnInitMenuPopup(UINT uMsg, WPARAM wParam, LPARAM lParam,
|
|||
return ret;
|
||||
}
|
||||
|
||||
LRESULT CShellBrowser::OnSetFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
|
||||
{
|
||||
::SetFocus(fCurrentShellViewWindow);
|
||||
return 0;
|
||||
}
|
||||
|
||||
LRESULT CShellBrowser::RelayMsgToShellView(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
|
||||
{
|
||||
if (fCurrentShellViewWindow != NULL)
|
||||
|
|
Loading…
Reference in a new issue