public bool PointInSubMenu(Point pt)
{
// Do we have sub menu items defined?
if (HasSubMenu)
{
// If menu item is split into regular button and sub menu areas
if (_splitSeparator.Draw)
{
// If mouse is inside or to the right of the slip indicator,
// then a sub menu is required when the button is used
return (pt.X > _splitSeparator.ClientRectangle.X);
}
// Whole item is the sub menu area
return true;
}
return false;
}