我正在使用DotNetBar
component SuperTabControl
,如果用户右键单击选项卡,我想显示上下文菜单,我找到了以下代码,但问题是我SuperTabControl
没有 GetTabRect 函数。
if (e.Button == MouseButtons.Right)
{
for (int i = 0; i < this.superTabControl1.Tabs.Count; ++i)
{
Rectangle r = this.superTabControl1.GetTabRect(i);
if (r.Contains(e.Location))
{
//display menu
}
}
}