Beispiel #1
0
        private void MainForm_Resize(object sender, EventArgs e)
        {
            _dwm_THUMBNAIL_PROPERTIES.Destination = DWMSize.ClientSize(groupBoxPreview);

            if (_currentHandle != IntPtr.Zero)
            {
                ShowThumbnail(_currentHandle);
            }
        }
Beispiel #2
0
        private async void MainForm_Load(object sender, System.EventArgs e)
        {
            _currentHandle   = IntPtr.Zero;
            _spyWindowHandle = IntPtr.Zero;

            _dwm_THUMBNAIL_PROPERTIES = new DWM_THUMBNAIL_PROPERTIES
            {
                Opacity = byte.MaxValue,
                Visible = true,
                SourceClientAreaOnly = false,
                Destination          = DWMSize.ClientSize(groupBoxPreview)
            };

            await Task.Delay(500);

            RefreshActiveProcess();
        }