Exemple #1
0
        protected override void WndProc(ref Message m)
        {
            if (m.Msg == 0x0007)
            {
                Handle.BottomMost();
            }

            base.WndProc(ref m);
        }
Exemple #2
0
        public Desktop(int i = 0)
        {
            InitializeComponent();

            BackgroundImage = Properties.Settings.Default.Desktop_WallpaperLocation.LoadImage(ClientSize);
            Name            = "Desktop" + i;

            SendToBack();

            if (i == 0)
            {
                Taskbar = new Applications.Taskbar();
                Taskbar.Show();

                Size     = Screen.PrimaryScreen.Bounds.Size;
                Location = Screen.PrimaryScreen.Bounds.Location;

                int c = 1;
                foreach (Screen scr in Screen.AllScreens)
                {
                    new Rectangle(scr.Bounds.Left, scr.Bounds.Top, scr.Bounds.Right - scr.Bounds.Left, scr.Bounds.Bottom - (scr.Bounds.Location == default(Point) ? Taskbar.Height : 0) - scr.Bounds.Top).SetWorkspace();

                    if (scr == Screen.PrimaryScreen)
                    {
                        continue;
                    }

                    Desktop desktop = new Desktop(c++);
                    desktop.Location = scr.Bounds.Location;
                    desktop.Size     = scr.Bounds.Size;
                    desktop.Show();
                }

                Tester();

                InitializeGadgets();
            }

            Handle.BottomMost();
        }