I don’t think it’s possible to simply set WS_EX_TRANSPARENT, but it can be done using two windows, create a window with a hole using SetWindowRgn , and another transparent window is added inside this hole using the styles WS_EX_LAYERED and WS_EX_TRANSPARENT.
source
share