public override void Prepare() { base.Prepare(); if (Config != null) { AreaManager.WindowCaptureMode |= Config.ForceWindowCapture; if (AreaManager.WindowCaptureMode) { WindowsListAdvanced wla = new WindowsListAdvanced(); wla.IgnoreWindows.Add(Handle); wla.IncludeChildWindows = Config.IncludeControls; AreaManager.Windows = wla.GetWindowsRectangleList(); } } }
public override void Prepare() { base.Prepare(); if (Config != null) { AreaManager.WindowCaptureMode |= Config.ForceWindowCapture; AreaManager.IncludeControls |= Config.IncludeControls; if (AreaManager.WindowCaptureMode) { IntPtr handle = Handle; TaskEx.Run(() => { WindowsListAdvanced wla = new WindowsListAdvanced(); wla.IgnoreHandle = handle; wla.IncludeChildWindows = AreaManager.IncludeControls; AreaManager.Windows = wla.GetWindowsRectangleList(); }); } } }