* Change the way the menu items are activated. Now the menubar activates on mouse down, and the other items activate on mouse up. Not everything works perfectly yet, but it will eventually allow proper usage of the shell menus by keeping the mouse button down. I believe this is also the way to go to avoid the "instant reopening" of the menus when trying to close them.

svn path=/branches/shell-experiments/; revision=63671
This commit is contained in:
David Quintana 2014-06-29 15:42:06 +00:00
parent 80c7746313
commit fd94119fa8
6 changed files with 168 additions and 3 deletions

View file

@ -1017,6 +1017,24 @@ HRESULT CMenuBand::_KillPopupTimers()
return hr;
}
HRESULT CMenuBand::_MenuBarMouseDown(HWND hwnd, INT item)
{
if (m_staticToolbar && m_staticToolbar->IsWindowOwner(hwnd) == S_OK)
m_staticToolbar->MenuBarMouseDown(item);
if (m_SFToolbar && m_SFToolbar->IsWindowOwner(hwnd) == S_OK)
m_SFToolbar->MenuBarMouseDown(item);
return S_OK;
}
HRESULT CMenuBand::_MenuBarMouseUp(HWND hwnd, INT item)
{
if (m_staticToolbar && m_staticToolbar->IsWindowOwner(hwnd) == S_OK)
m_staticToolbar->MenuBarMouseUp(item);
if (m_SFToolbar && m_SFToolbar->IsWindowOwner(hwnd) == S_OK)
m_SFToolbar->MenuBarMouseUp(item);
return S_OK;
}
HRESULT STDMETHODCALLTYPE CMenuBand::InvalidateItem(LPSMDATA psmd, DWORD dwFlags)
{
UNIMPLEMENTED;