示例#1
0
 private void Delegate_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         CRect_Cli  rect = new CRect_Cli();
         CPoint_Cli pt   = new CPoint_Cli();
         pt.X = e.X;
         pt.Y = e.Y;
         uint nFlags = 0;
         if (_openGraph_Cli != null)
         {
             _openGraph_Cli.OnLButtonDown(ref rect, nFlags, pt);
         }
     }
 }
示例#2
0
        private void Delegate_MouseMove(object sender, MouseEventArgs e)
        {
            _openGraph_Cli.OnSetCursor();
            if (e.Button == MouseButtons.Left)
            {
                CRect_Cli  rect = new CRect_Cli();
                CPoint_Cli pt   = new CPoint_Cli();
                pt.X = e.X;
                pt.Y = e.Y;

                uint nFlags = (int)COpenGraph_Cli.ButtonFlag.flagMK_LBUTTON;
                if (_openGraph_Cli != null)
                {
                    _openGraph_Cli.OnMouseMove(nFlags, pt);
                }
            }
        }
示例#3
0
文件: Form1.cs 项目: satanupup/epb
 private void Delegate_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         CRect_Cli rect = new CRect_Cli();
         CPoint_Cli pt = new CPoint_Cli();
         pt.X = e.X;
         pt.Y = e.Y;
         uint nFlags = 0;
         if (_openGraph_Cli != null)
         {
             _openGraph_Cli.OnLButtonDown(ref rect, nFlags, pt);
         }
     }
 }
示例#4
0
文件: Form1.cs 项目: satanupup/epb
        private void Delegate_MouseMove(object sender, MouseEventArgs e)
        {
            _openGraph_Cli.OnSetCursor();
            if (e.Button == MouseButtons.Left)
            {
                CRect_Cli rect = new CRect_Cli();
                CPoint_Cli pt = new CPoint_Cli();
                pt.X = e.X;
                pt.Y = e.Y;

                uint nFlags = (int)COpenGraph_Cli.ButtonFlag.flagMK_LBUTTON;
                if (_openGraph_Cli != null)
                {
                    _openGraph_Cli.OnMouseMove(nFlags, pt);
                }
            }
        }