Haven't tried your code, but I think it is restricted to Win8 and higher, due to setting layered window attribute on a child window, correct?