Beispiel #1
0
        private void SpyFormHandler_Resize(object sender, EventArgs e)
        {
            _dwm_THUMBNAIL_PROPERTIES.Destination = DWMSize.ClientSize(this, this.landscapeToolStripMenuItem.Checked, this.FormBorderStyle == FormBorderStyle.None);
            ShowThumbnail(_spyHandler);

            this.Invalidate();
        }
Beispiel #2
0
        private void landscapeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.landscapeToolStripMenuItem.Checked = !this.landscapeToolStripMenuItem.Checked;

            _dwm_THUMBNAIL_PROPERTIES.Destination = DWMSize.ClientSize(this, this.landscapeToolStripMenuItem.Checked, this.FormBorderStyle == FormBorderStyle.None);
            ShowThumbnail(_spyHandler);
        }
Beispiel #3
0
        private void SpyFormHandler_Load(object sender, EventArgs e)
        {
            this.TransparencyKey = Color.FromArgb(255, 2, 3, 4);
            this.BackColor       = Color.FromArgb(255, 2, 3, 4);

            this.TopMost = Settings.Default.DefaultTop;
            this.topToolStripMenuItem.Checked        = Settings.Default.DefaultTop;
            this.landscapeToolStripMenuItem.Checked  = Settings.Default.DefaultLandscape;
            this.drawMarginToolStripMenuItem.Checked = Settings.Default.DefaultDrawMargin;

            _dwm_THUMBNAIL_PROPERTIES = new DWM_THUMBNAIL_PROPERTIES
            {
                Opacity = byte.MaxValue,
                Visible = true,
                SourceClientAreaOnly = false,
                Destination          = DWMSize.ClientSize(this, this.landscapeToolStripMenuItem.Checked, this.FormBorderStyle == FormBorderStyle.None)
            };

            ShowThumbnail(_spyHandler);
        }