How to create a compeletely transparent window with MFC

mfctransparentwindow

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 Answer

You can use layered windows for transparency effects. See http://msdn.microsoft.com/en-us/library/ms997507.aspx. 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.