Transparent Text to bitmap
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
The wording of you question needs work, but here is what you need. SetBkMode(TRANSPARENT); (the text is drawn without drawing background). If you need to be able to move the text around via draging then you will have to create a compatible bitmap of the appropriate size and draw the text on it then drag the bitmap around on top of whatever bitmap you are placing it on. In which case you will need to use the functions: GetTextExtent (to determine the size of the bitmap to create before drawing to it) and TransparentBlt (NT/Windows 2000) or some other method for drawing doing transparent blits. An example of one way to do transparent blits is in the code provided in CDibData and another in the MSDN library. Good luck! INTP