public int showContextMenu(int _menuHandle)
{
int ret;
int myItemIdx;
PopupMenu popupMenu = PopupMenu::create(_menuHandle, this.hWnd());
;
myItemIdx = popupMenu.insertItem("Click here");
ret = popupMenu.draw();
if (ret == myItemIdx)
{
info("Clicked");
}
return ret;
}
{
int ret;
int myItemIdx;
PopupMenu popupMenu = PopupMenu::create(_menuHandle, this.hWnd());
;
myItemIdx = popupMenu.insertItem("Click here");
ret = popupMenu.draw();
if (ret == myItemIdx)
{
info("Clicked");
}
return ret;
}