|
|
|
@ -882,7 +882,9 @@ void ProjectPanel::showContextMenu(int x, int y)
|
|
|
|
|
// Make item selected
|
|
|
|
|
_treeView.selectItem(tvHitInfo.hItem);
|
|
|
|
|
HMENU hMenu = getMenuHandler(tvHitInfo.hItem);
|
|
|
|
|
TrackPopupMenu(hMenu, TPM_LEFTALIGN, x, y, 0, _hSelf, NULL);
|
|
|
|
|
TrackPopupMenu(hMenu,
|
|
|
|
|
NppParameters::getInstance().getNativeLangSpeaker()->isRTL() ? TPM_RIGHTALIGN | TPM_LAYOUTRTL : TPM_LEFTALIGN,
|
|
|
|
|
x, y, 0, _hSelf, NULL);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -897,7 +899,9 @@ void ProjectPanel::showContextMenuFromMenuKey(HTREEITEM selectedItem, int x, int
|
|
|
|
|
if (selectedItem != NULL)
|
|
|
|
|
{
|
|
|
|
|
HMENU hMenu = getMenuHandler(selectedItem);
|
|
|
|
|
TrackPopupMenu(hMenu, TPM_LEFTALIGN, p.x, p.y, 0, _hSelf, NULL);
|
|
|
|
|
TrackPopupMenu(hMenu,
|
|
|
|
|
NppParameters::getInstance().getNativeLangSpeaker()->isRTL() ? TPM_RIGHTALIGN | TPM_LAYOUTRTL : TPM_LEFTALIGN,
|
|
|
|
|
x, y, 0, _hSelf, NULL);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -987,7 +991,9 @@ void ProjectPanel::popupMenuCmd(int cmdID)
|
|
|
|
|
case IDB_PROJECT_BTN:
|
|
|
|
|
{
|
|
|
|
|
POINT p = getMenuDisplayPoint(0);
|
|
|
|
|
TrackPopupMenu(_hWorkSpaceMenu, TPM_LEFTALIGN, p.x, p.y, 0, _hSelf, NULL);
|
|
|
|
|
TrackPopupMenu(_hWorkSpaceMenu,
|
|
|
|
|
NppParameters::getInstance().getNativeLangSpeaker()->isRTL() ? TPM_RIGHTALIGN | TPM_LAYOUTRTL : TPM_LEFTALIGN,
|
|
|
|
|
p.x, p.y, 0, _hSelf, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
@ -1003,7 +1009,9 @@ void ProjectPanel::popupMenuCmd(int cmdID)
|
|
|
|
|
else if (nodeType == nodeType_file)
|
|
|
|
|
hMenu = _hFileMenu;
|
|
|
|
|
if (hMenu)
|
|
|
|
|
TrackPopupMenu(hMenu, TPM_LEFTALIGN, p.x, p.y, 0, _hSelf, NULL);
|
|
|
|
|
TrackPopupMenu(hMenu,
|
|
|
|
|
NppParameters::getInstance().getNativeLangSpeaker()->isRTL() ? TPM_RIGHTALIGN | TPM_LAYOUTRTL : TPM_LEFTALIGN,
|
|
|
|
|
p.x, p.y, 0, _hSelf, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|