mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 02:43:09 +00:00
[RSHELL]
* Fix keyboard navigation and hottracking behaviour. One glitch remains where quickly moving the mouse to a parent's toolbar item, and returning to the submenu before it closes, won't restore the parent's hot item to the one with the submenu. svn path=/branches/shell-experiments/; revision=62509
This commit is contained in:
parent
492eebcc0e
commit
bacc079c22
7 changed files with 240 additions and 25 deletions
|
@ -43,6 +43,9 @@ private:
|
|||
HWND m_currentFocus;
|
||||
HHOOK m_hHook;
|
||||
DWORD m_threadId;
|
||||
BOOL m_mouseTrackDisabled;
|
||||
WPARAM m_lastMoveFlags;
|
||||
LPARAM m_lastMovePos;
|
||||
|
||||
// TODO: make dynamic
|
||||
#define MAX_RECURSE 20
|
||||
|
@ -64,10 +67,14 @@ public:
|
|||
BEGIN_COM_MAP(CMenuFocusManager)
|
||||
END_COM_MAP()
|
||||
|
||||
private:
|
||||
LRESULT GetMsgHook(INT nCode, WPARAM wParam, LPARAM lParam);
|
||||
HRESULT PlaceHooks(HWND window);
|
||||
HRESULT RemoveHooks(HWND window);
|
||||
HRESULT UpdateFocus(CMenuBand * newBand);
|
||||
HRESULT ActivationChange(HWND newHwnd);
|
||||
void DisableMouseTrack(HWND enableTo, BOOL disableThis);
|
||||
HRESULT IsTrackedWindow(HWND hWnd);
|
||||
|
||||
public:
|
||||
HRESULT PushMenu(CMenuBand * mb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue