Ejemplo n.º 1
0
        internal Window(Window window) : base(window)
        {
            this.IsFloating         = window.IsFloating;
            this.Titlebar           = window.Titlebar;
            this.InAltTabAndTaskbar = window.InAltTabAndTaskbar;
            this.WindowBorders      = window.WindowBorders;
            this.WorkspacesCount    = window.WorkspacesCount;
            this.DisplayName        = window.DisplayName;
            className                 = window.className;
            processName               = window.processName;
            is64BitProcess            = window.is64BitProcess;
            redrawOnShow              = window.redrawOnShow;
            ShowMenu                  = window.ShowMenu;
            updateIcon                = window.updateIcon;
            onHiddenWindowShownAction = window.onHiddenWindowShownAction;
            menu = window.menu;
            this.hideFromAltTabAndTaskbarWhenOnInactiveWorkspace = window.hideFromAltTabAndTaskbarWhenOnInactiveWorkspace;

            this.originalStyle   = window.originalStyle;
            this.originalExStyle = window.originalExStyle;

            windowPlacement         = window.windowPlacement;
            originalWindowPlacement = window.originalWindowPlacement;

            this.customOwnedWindowMatchingFunction = window.customOwnedWindowMatchingFunction;
            ownedWindows = window.ownedWindows;
        }
Ejemplo n.º 2
0
        internal Window(IntPtr hWnd, string className, string displayName, string processName, int workspacesCount, bool is64BitProcess,
            NativeMethods.WS originalStyle, NativeMethods.WS_EX originalExStyle, ProgramRule.Rule rule, ProgramRule programRule, IntPtr menu)
            : base(hWnd)
        {
            IsFloating = rule.isFloating;
            Titlebar = rule.titlebar;
            InAltTabAndTaskbar = rule.inAltTabAndTaskbar;
            WindowBorders = rule.windowBorders;
            this.WorkspacesCount = workspacesCount;
            this.DisplayName = displayName;
            this.className = className;
            this.processName = processName;
            this.is64BitProcess = is64BitProcess;
            redrawOnShow = rule.redrawOnShow;
            ShowMenu = programRule.showMenu;
            updateIcon = programRule.updateIcon;
            onHiddenWindowShownAction = programRule.onHiddenWindowShownAction;
            this.menu = menu;
            this.hideFromAltTabAndTaskbarWhenOnInactiveWorkspace = rule.hideFromAltTabAndTaskbarWhenOnInactiveWorkspace;

            this.originalStyle = originalStyle;
            this.originalExStyle = originalExStyle;

            windowPlacement = NativeMethods.WINDOWPLACEMENT.Default;
            SavePosition();
            originalWindowPlacement = windowPlacement;

            this.customOwnedWindowMatchingFunction = programRule.customOwnedWindowMatchingFunction;

            this.ownedWindows = new LinkedList<IntPtr>();
            this.ownedWindows.AddFirst(hWnd);
        }
Ejemplo n.º 3
0
        internal Window(IntPtr hWnd, string className, string displayName, string processName, int workspacesCount, bool is64BitProcess,
                        NativeMethods.WS originalStyle, NativeMethods.WS_EX originalExStyle, ProgramRule.Rule rule, ProgramRule programRule, IntPtr menu) :
            base(hWnd)
        {
            IsFloating                = rule.isFloating;
            Titlebar                  = rule.titlebar;
            InAltTabAndTaskbar        = rule.inAltTabAndTaskbar;
            WindowBorders             = rule.windowBorders;
            this.WorkspacesCount      = workspacesCount;
            this.DisplayName          = displayName;
            this.className            = className;
            this.processName          = processName;
            this.is64BitProcess       = is64BitProcess;
            redrawOnShow              = rule.redrawOnShow;
            ShowMenu                  = programRule.showMenu;
            updateIcon                = programRule.updateIcon;
            onHiddenWindowShownAction = programRule.onHiddenWindowShownAction;
            this.menu                 = menu;
            this.hideFromAltTabAndTaskbarWhenOnInactiveWorkspace = rule.hideFromAltTabAndTaskbarWhenOnInactiveWorkspace;

            this.originalStyle   = originalStyle;
            this.originalExStyle = originalExStyle;

            windowPlacement = NativeMethods.WINDOWPLACEMENT.Default;
            SavePosition();
            originalWindowPlacement = windowPlacement;

            this.customOwnedWindowMatchingFunction = programRule.customOwnedWindowMatchingFunction;

            this.ownedWindows = new LinkedList <IntPtr>();
            this.ownedWindows.AddFirst(hWnd);
        }
Ejemplo n.º 4
0
        internal Window(Window window)
            : base(window)
        {
            this.IsFloating = window.IsFloating;
            this.Titlebar = window.Titlebar;
            this.InAltTabAndTaskbar = window.InAltTabAndTaskbar;
            this.WindowBorders = window.WindowBorders;
            this.WorkspacesCount = window.WorkspacesCount;
            this.DisplayName = window.DisplayName;
            className = window.className;
            processName = window.processName;
            is64BitProcess = window.is64BitProcess;
            redrawOnShow = window.redrawOnShow;
            ShowMenu = window.ShowMenu;
            updateIcon = window.updateIcon;
            onHiddenWindowShownAction = window.onHiddenWindowShownAction;
            menu = window.menu;
            this.hideFromAltTabAndTaskbarWhenOnInactiveWorkspace = window.hideFromAltTabAndTaskbarWhenOnInactiveWorkspace;

            this.originalStyle = window.originalStyle;
            this.originalExStyle = window.originalExStyle;

            windowPlacement = window.windowPlacement;
            originalWindowPlacement = window.originalWindowPlacement;

            this.customOwnedWindowMatchingFunction = window.customOwnedWindowMatchingFunction;
            ownedWindows = window.ownedWindows;
        }