右键菜单

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;
}
posted @ 2012-07-26 14:26  perock  阅读(271)  评论(0编辑  收藏  举报