Пример #1
0
        private void HandleSideMouseDown(object sender, FormShadowResizeArgs e)
        {
            if (e.Mode == HitTest.HTNOWHERE || e.Mode == HitTest.HTCAPTION)
            {
                return;
            }

            if (Resizable)
            {
                User32.SendMessage(parentWindowHWnd, (uint)WindowsMessages.WM_SYSCOMMAND, (IntPtr)(GetSizeMode(e.Mode)), IntPtr.Zero);
            }
        }
        private void CastMouseDown(Point point)
        {
            if (!ExternalResizeEnable)
            {
                return;
            }

            HitTest mode = GetResizeMode();

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