mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +00:00
[RSHELL]
* Implement selecting the first/last item, and make the menu system choose to select the first item when opening a submenu with the keyboard. svn path=/branches/shell-experiments/; revision=62959
This commit is contained in:
parent
cfb6a8a36e
commit
2f3d0e3e01
5 changed files with 48 additions and 22 deletions
|
@ -370,6 +370,13 @@ HRESULT STDMETHODCALLTYPE CMenuDeskBar::Popup(POINTL *ppt, RECTL *prcExclude, MP
|
|||
|
||||
UIActivateIO(TRUE, NULL);
|
||||
|
||||
if (dwFlags & (MPPF_INITIALSELECT | MPPF_FINALSELECT))
|
||||
{
|
||||
const int CMD_SELECT = 5;
|
||||
int CMD_SELECT_OPTS = dwFlags & MPPF_INITIALSELECT ? 0 : -2;
|
||||
IUnknown_QueryServiceExec(m_Client, SID_SMenuBandChild, &CLSID_MenuBand, CMD_SELECT, CMD_SELECT_OPTS, NULL, NULL);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue