
Friend Function QueryContextMenu(ByVal hMenu As Long, ByVal indexMenu As Long, ByVal idCmdFirst As Long, ByVal idCmdLast As Long, ByVal uFlags As Long) As Long
Dim hSubMenu As Long, lIdx As Long
...
'Добавление пунктов меню
InsertMenu hMenu, indexMenu, MF_BYPOSITION Or MF_SEPARATOR, 0, ByVal 0&
InsertMenu hMenu, indexMenu, MF_BYPOSITION Or MF_POPUP, hSubMenu, ByVal "Selected Files"
InsertMenu hMenu, 0, MF_BYPOSITION, idCmdFirst, ByVal m_Items(0).Caption
InsertMenu hMenu, indexMenu, MF_BYPOSITION Or MF_SEPARATOR, 0, ByVal 0&
...
End Function
Сейчас этот форум просматривают: Yandex-бот и гости: 7