mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +00:00
[SHELL32] CFSDropTarget: Fix right click menu when shown over the tree view. CORE-11240
This commit is contained in:
parent
62c33fbf69
commit
1d55f459d6
1 changed files with 18 additions and 1 deletions
|
@ -206,9 +206,26 @@ HRESULT CFSDropTarget::_GetEffectFromMenu(IDataObject *pDataObject, POINTL pt, D
|
|||
|
||||
/* FIXME: We need to support shell extensions here */
|
||||
|
||||
/* We shouldn't use the site window here because the menu should work even when we don't have a site */
|
||||
HWND hwndDummy = CreateWindowEx(0,
|
||||
WC_STATIC,
|
||||
NULL,
|
||||
WS_OVERLAPPED | WS_DISABLED | WS_CLIPSIBLINGS | WS_BORDER | SS_LEFT,
|
||||
pt.x,
|
||||
pt.y,
|
||||
1,
|
||||
1,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
UINT uCommand = TrackPopupMenu(hpopupmenu,
|
||||
TPM_LEFTALIGN | TPM_RETURNCMD | TPM_LEFTBUTTON | TPM_RIGHTBUTTON | TPM_NONOTIFY,
|
||||
pt.x, pt.y, 0, m_hwndSite, NULL);
|
||||
pt.x, pt.y, 0, hwndDummy, NULL);
|
||||
|
||||
DestroyWindow(hwndDummy);
|
||||
|
||||
if (uCommand == 0)
|
||||
return S_FALSE;
|
||||
else if (uCommand == IDM_COPYHERE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue