How to create a compeletely transparent window with MFC


I want to create a completely transparent window with MFC, but I don't know how to do this. Can you tell me the way?

Thank you very much!

Best Solution

You can use layered windows for transparency effects. See Be sure to set the WS_EX_LAYERED bit and to use UpdateLayeredWindow. This allows you to trap messages even though the window isn't visible to the user.