private void xtraTabbedMdiManager1_MouseUp(object sender, MouseEventArgs e)
{
//点左键无效, 必须是点右键弹出菜单
if (e.Button != MouseButtons.Right) return;
BaseTabHitInfo hint = xtraTabbedMdiManager1.CalcHitInfo(e.Location);
//点击有效,且点击在TabPage标题上
if (hint.IsValid && (hint.Page != null))
{
//有效子窗体
if (xtraTabbedMdiManager1.SelectedPage.MdiChild != null)
{
Point p = xtraTabbedMdiManager1.SelectedPage.MdiChild.PointToScreen(e.Location);
popupMenu1.ShowPopup(p); //显示弹出菜单
}
}
}
popupMenu1:dev控件的菜单控件