I am trying to draw a transparent window so that when I drag it around the contents of the window below it are not obscured. As per documentation the WS_TRANSPARENT style renders a window transparent. But when it is moved around it carries the background of the window on which it was last placed i.e. it loses its transparency once it is created. So how do we make windows retain their transparency even after moving them around ?
One more problem is that I have created a generic CWnd object without the WS_TRANSPARENT style (infact I reoved it in precreatewindow). But the window still behaves the same way it behaved with WS_TRANSPARENT style. Can you give some clues ?