System.Windows.Forms.MenuTracker.ScreenToMenu C# (CSharp) Method

ScreenToMenu() static private method

static private ScreenToMenu ( Menu menu, Point pnt ) : Point
menu Menu
pnt System.Drawing.Point
return System.Drawing.Point
		internal static Point ScreenToMenu (Menu menu, Point pnt)		
		{
			int x = pnt.X;
			int y = pnt.Y;
			//XplatUI.ScreenToMenu (menu.Wnd.window.Handle, ref x, ref y);
			return new Point (x, y);
		}	

Usage Example

Example #1
0
        public bool HandleMenuMouseDown(MainMenu menu, int x, int y)
        {
            Point_ pt = MenuTracker.ScreenToMenu(menu, new Point_(x, y));

            HandleTitleBarDown(pt.X, pt.Y);
            return(TitleButtons.AnyPushedTitleButtons);
        }
All Usage Examples Of System.Windows.Forms.MenuTracker::ScreenToMenu