Beispiel #1
0
            public bool PreFilterMessage(ref Message m)
            {
                uint  pos = GetMessagePos();
                short x   = (short)(pos & 0x0000ffff);
                short y   = (short)((pos & 0xffff0000) >> 16);

                switch (m.Msg)
                {
                case WM_LBUTTONDOWN:
                {
                    MouseDown.Execute(new System.Drawing.Point(x, y));
                    break;
                }

                case WM_LBUTTONUP:
                {
                    MouseUp.Execute(new System.Drawing.Point(x, y));
                    break;
                }
                }
                return(false);
            }