I can use the "WS_EX_TRANSPARENT" style to make a window transparent. That does work.
But when I try to paint on the transparent window, a problem occurs. While it's necessary to erase the background of the window to do a good job of painting, the erasure of the window's background turn out to be a problem since it will make the transparent window opaque again and the display will flicker.
I've tried to override the OnEraseBkgnd() function by just returning TRUE and use a null_brush to erase the background of the window myself (a dialog window in my case), but it didn't work. Therefore, I want to know how can I do a good job of painting while keeping the window on which the graphic is painted transparent all the time? I'm hoping that someone can help me! Thanks a lot!
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)