Win32CaptureSample icon indicating copy to clipboard operation
Win32CaptureSample copied to clipboard

SetWindowDisplayAffinity is not work at HWND which has WS_EX_LAYERED style

Open Youarenotin opened this issue 3 years ago • 1 comments

i have a semitransparent HWND . when i use SetWindowDisplayAffinity method to exlude it from screen capture , but the result is the semitransparent HWND remains on the captured image.

Youarenotin avatar Jan 03 '23 08:01 Youarenotin

Which build of Windows are you running? Are you doing the usual WS_EX_LAYERED/SetLayeredWindowAttributes to achieve the semi-transparency?

robmikh avatar Jan 04 '23 02:01 robmikh