Bitblt and raster ops

I'm trying to colour some text using a gradient fill. Now I can do this using Bitblt with SRCPAINT and SRCAND raster ops and I get my gradient text filled in correctly, but I want to paint the text with a solid background colour say white or gray. I've been experimenting doing this but somehow I cannot draw a solid background behind the text. Can anyone offer a solution or tell me whereelse to look ?

You need to paint the background first - probably with FillRect and then you paint the text.
Registered users can post here. Sign in or register to post.