public MouseUp ( |
||
c | Reference to the source control instance. | |
pt | Point | Mouse position relative to control. |
button | MouseButtons | Mouse button released. |
리턴 | void |
public virtual void MouseUp(Control c, Point pt, MouseButtons button)
{
// Only interested in processing if the menu item is enabled
if (_menuItem.ItemEnabled)
{
// Is mouse in the area of the item for indicating a sub menu
if (_menuItem.PointInSubMenu(pt))
_menuItem.ShowSubMenu(false);
else
PressMenuItem();
}
}