Пример #1
0
        private static void ExitSpecialCapturing(IntPtr hWnd)
        {
            Win32Ext.ShowWindow(hWnd, ShowWindowEnum.Minimize);
            Win32Ext.SetWindowLong(hWnd, Win32Ext.GWL_EXSTYLE, winLong);

            if (minAnimateChanged)
            {
                XPAppearance.MinAnimate = true;
                minAnimateChanged       = false;
            }
        }
Пример #2
0
        private void EnterSpecialCapturing(IntPtr hWnd)
        {
            if (XPAppearance.MinAnimate)
            {
                XPAppearance.MinAnimate = false;
                minAnimateChanged       = true;
            }

            winLong = Win32Ext.GetWindowLong(hWnd, Win32Ext.GWL_EXSTYLE);
            Win32Ext.SetWindowLong(hWnd, Win32Ext.GWL_EXSTYLE, winLong | Win32Ext.WS_EX_LAYERED);
            Win32Ext.SetLayeredWindowAttributes(hWnd, 0, 1, Win32Ext.LWA_ALPHA);
            Win32Ext.ShowWindow(hWnd, ShowWindowEnum.Restore);
            Win32Ext.SendMessage(hWnd, Win32Ext.WM_PAINT, 0, 0);
        }