Advertisement

Help with tutorial 13, bitmap fonts.

Started by December 10, 2002 11:53 AM
1 comment, last by KenR7A 22 years, 2 months ago
Hey, Im trying to add the code from tutorial 13 into my MFC app to create active text. Im adding these functions to my doc class and I had to specify an ''HDC hDC'' (not sure if that is the way to get a DC) for it to compile. No text is displayed though. I know it has something to do with the DC. I read in another forum that this tutorial will only work in the VIEW class. Is this right? How can I make it work in the DOC class? (thats where my "RenderScene" function is) thanks
If you''re in MFC, there is already a raster layer provided. You don''t need to use the OpenGL rasters...I''m not sure you can. Just look at www.codeguru.com under SDI or MDI app programming for code to display in the window (you can even draw off-window with MFC)
Advertisement
I was able to get it to work using CClient aDC(this) and tyhen using aDC instead of hDC. thanks

This topic is closed to new replies.

Advertisement