DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Active Window capture includes shadow in Windows 10 w/ Aero Glass cap disabled  (Read 7,076 times)

Sangatster

  • World peace through donationware!
  • Supporting Member
  • Joined in 2016
  • **
  • Posts: 6
Note: Related post (closed, can't reply to it):  http://www.donationcoder.com/forum/index.php?topic=42196.0

Recently I started seeing shadows when capturing an Active Window (like a dialog) in Windows 10.  See attached.
[attachment 1 not found]

An option was added to SSC years ago to get around this which I have disabled.  I see another option that I've never used and tried it but it didn't have an effect either.  See attached.
[attachment 2 not found]

I suppose this is due to the fact that Microsoft appears to be bent on breaking fundamental architectural standards (their Microsoft Dynamics CRM app randomly shows a system modal dialog that says "I'm doing something" then automatically closes, preventing anything from being done in any app and when it's done the original keyboard focus is not restored so you have to go click the active app again).  Okay, not going to rant, but  >:(

Not a show stopper, but I have to manually clean the dialog up by trimming the extra stuff off the edges.

I took a look at the message dialog box used in the first screen capture and here's what I'm seeing with respects to the parentage:

Code
HWND	[511EC]
PID	[000003F0]
Title	[Sample Windows 10 Dialog]
Class	[#32770]

#32770's children:
    Child #1: HWnd=511D4	Class=Button	Title=OK
    Child #2: HWnd=813F6	Class=Static	Title=None
    Child #3: HWnd=611E8	Class=Static	Title=Note the shadow is coming through although Arrow Glass Transparency option is disabled.

It's been a while since I snooped around in the OS, so... Using a window inspection tool I wrote years ago that does a system WindowFromPoint() call iirc, I think the OS has expanded the non-client region of the window for painting shadows.  The NCR used to just consist of the window's border area.

Anyway, I dug through all the SSC options again and can't find anything that can resolve this.


tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
hi Sangatster,
just to let you know that the attachments didnt work for some reason
Tom

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Welcome Sangatster.

Waiting to see the screenshot attachments before replying.

Sangatster

  • World peace through donationware!
  • Supporting Member
  • Joined in 2016
  • **
  • Posts: 6
Sorry for the terrible delay.  I didn't get a notification about this and haven't come back to check on it until today.

Okay, let me try the attachment again.

Aero_Captured.png

Sangatster

  • World peace through donationware!
  • Supporting Member
  • Joined in 2016
  • **
  • Posts: 6
Okay, looks like that worked.  Let me know...

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Uncheck the option to "Try to capture Aero Glass transparency effects" on the "Window Capturing 1" tab of preferences.

Original address: https://www.donationcoder.com/forum/index.php?topic=42956.0