mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 16:09:43 +00:00
[BROWSEUI]
* Allow the static items in the Favorites menu to be received by the shell browse window. * Handle the Organize Favorites menu item by opening either the USER favorites, or the COMMON version of the folder. [RSHELL] * Send the proper HWND together with the HMENU, when sending callbacks. svn path=/branches/shell-experiments/; revision=65111
This commit is contained in:
parent
5ee771bbc6
commit
2e0e5f7174
8 changed files with 64 additions and 13 deletions
|
@ -738,18 +738,14 @@ HRESULT CMenuBand::_CallCB(UINT uMsg, WPARAM wParam, LPARAM lParam, UINT id, LPI
|
|||
if (!m_psmc)
|
||||
return S_FALSE;
|
||||
|
||||
HWND hwnd;
|
||||
GetWindow(&hwnd);
|
||||
|
||||
SMDATA smData = { 0 };
|
||||
smData.punk = static_cast<IShellMenu2*>(this);
|
||||
smData.uId = id;
|
||||
smData.uIdParent = m_uId;
|
||||
smData.uIdAncestor = m_uIdAncestor;
|
||||
smData.pidlItem = pidl;
|
||||
smData.hwnd = hwnd;
|
||||
if (m_hmenu)
|
||||
smData.hmenu = m_hmenu;
|
||||
smData.hwnd = m_menuOwner ? m_menuOwner : m_topLevelWindow;
|
||||
smData.hmenu = m_hmenu;
|
||||
smData.pvUserData = NULL;
|
||||
if (m_SFToolbar)
|
||||
m_SFToolbar->GetShellFolder(NULL, &smData.pidlFolder, IID_PPV_ARG(IShellFolder, &smData.psf));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue