CompuServe Messages

Transparent Windows

    08-Jul-94 10:17:58
Sb: Transparent Windows
Fm: David Phipps 73051,2605
To: All
Hello, everybody! I am trying to solve a couple of nasty problems associated with transparent windows. That's right, TRANSPARENT. Using CWnd::CreateEx(), you can create a window with the TRANSPARENT style bit set – and indeed, it is transparent. Any painting you do on the DC obscures what's below; all else shows through. The problem is on the create, the backgroudn wipes white, and I cannot seem to get the background to repaint and let the underlying areas shine through. I have tried everything – the one thing I have not tried is sending an invalidate to the transparent child window immediately after the create and sitting in a message loop until it finishes. I have tries Invalidate() followed by UpdateWindow(), but of course, this does not work after the create – several messages are stacked up that need to be processed before the window even really exists yet, so these calls are ignored. Any suggestions? Thanks, David Phipps Senior Technical Lead Milagro Systems, Inc.