首先判断该鼠标点击坐标是否有Node,如果有则选中,然后弹出菜单
具体菜单怎么添加,就不关我事了,233333333333333
void list_MouseUp(object sender, MouseEventArgs e)
{
if ((sender as DevExpress.XtraTreeList.TreeList).CalcHitInfo(e.Location).Node == null) return;
if (e.Button == MouseButtons.Right)
{
(sender as DevExpress.XtraTreeList.TreeList).CalcHitInfo(e.Location).Node.Selected = true;
this.popupQQsMenu.ShowPopup(Control.MousePosition);
}
}