Пример #1
0
        public static void Min()
        {
            _drag = false;
            if (Application.isEditor)
            {
                return;
            }

            SetNormalSize();
            Win32Export.ShowWindow(_hWnd, (int)Win32Export.WStyle.MINISIZE);
            //Win32.SetWindowPos(_hWnd, -2, x, y, cx, cy, nflags);
            OnWindowModeChangeCallback?.Invoke(CurrentStyle);
        }
Пример #2
0
        public static void Normal()
        {
            _drag = false;
            if (Application.isEditor)
            {
                return;
            }

            OnlyFrame();
            Win32Export.ShowWindow(_hWnd, (int)Win32Export.WStyle.NORMAL);

            /*int x, y, w, h;
             * x = y = w = h = 0;
             * GetNormalSize(ref x, ref y, ref w, ref h);
             * Win32Export.SetWindowPos(_hWnd, Win32Export.HWND_NORMAL, x, y, w, h, Win32Export.SWP_SHOWWINDOW | Win32Export.SWP_NOMOVE);*/
            OnWindowModeChangeCallback?.Invoke(CurrentStyle);
        }