mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +00:00
[RSHELL]
* CMenuDeskBar: Use the submenu pointer to pass on the cancel events. Windows appears to call this with code=2 (cancellevel). * CMenuBand: Begin implementing a focus manager for the menu windows. This class will take care of handling mouse and keyboard interactions, including closing the start menu and submenus when the user clicks outside the menu window. CORE-7881 svn path=/branches/shell-experiments/; revision=62259
This commit is contained in:
parent
b6207043c9
commit
e0d383ebd4
3 changed files with 287 additions and 13 deletions
|
@ -576,14 +576,11 @@ HRESULT STDMETHODCALLTYPE CMenuDeskBar::OnSelect(
|
|||
UIActivateIO(FALSE, NULL);
|
||||
}
|
||||
|
||||
//if (bubbleUp && m_Site)
|
||||
//{
|
||||
// CComPtr<IMenuPopup> pmp;
|
||||
// HRESULT hr = IUnknown_QueryService(m_Site, SID_SMenuPopup, IID_PPV_ARG(IMenuPopup, &pmp));
|
||||
// if (FAILED(hr))
|
||||
// return hr;
|
||||
// pmp->OnSelect(dwSelectType);
|
||||
//}
|
||||
if (bubbleUp && m_SubMenuParent)
|
||||
{
|
||||
hr = m_SubMenuParent->OnSelect(MPOS_CANCELLEVEL); // why??
|
||||
return hr;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue