Example #1
0
        private void HandleSideMouseDown(object sender, SideGlowResizeArgs e)
        {
            if (e.Mode == HitTest.HTNOWHERE || e.Mode == HitTest.HTCAPTION)
            {
                return;
            }

            User32.SendMessage(_parentWindowHndl, (uint)WindowsMessages.WM_SYSCOMMAND, (IntPtr)e.Mode.ToInt(), IntPtr.Zero);
        }
Example #2
0
        private void CastMouseDown()
        {
            if (!ExternalResizeEnable)
            {
                return;
            }

            HitTest mode = GetResizeMode();

            if (MouseDown != null)
            {
                SideGlowResizeArgs args = new SideGlowResizeArgs(_side, mode);
                MouseDown(this, args);
            }
        }