I'm creating a window with WS_EX_LAYERED
and setting a color key to it using SetLayeredWindowAttributes()
. I can verify that this color key indeed creates a transparent patch in the window by drawing a simple rect using FillRect()
inside the window. This doesn't work however when I'm drawing in the window using DirectDraw. I'm creating an IDirectDrawSurface7
on the window and I'm Blt()
ing some pixels to it. some of the pixels are colored with the color key, but I don't see them as transparent, they just appear in the color key.
Is there something inherent in DirectDraw surface that conflicts with layered window color keying?
When i'm setting an alpha value using SetLayeredWindowAttributes()
, that seem to work fine with the DirectDraw surface and it does indeed appear translucent.