Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

saladin

I have some questions abount TextOut()

This topic is 5507 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I use these lines to draw texts on my Win32 programming back->GetDC(&hdc); // draw string on backsurface SetBkColor(hdc, RGB(255, 255, 255)); SetBkMode(hdc, TRANSPARENT); SetTextColor(hdc, RGB(119, 4, 249)); TextOut(hdc, 400, 155, "draw", strlen("draw")); back->ReleaseDC(hdc); I have some questions about TextOut() I wish to know - How to change size of text printed out? - Can I change font of texts? please help me out. Thank you.

Share this post


Link to post
Share on other sites
Advertisement
Use CreateFont() to get a HFONT handle for different sizes or typefaces. Use SelectObject() to use the font on the device context.

Share this post


Link to post
Share on other sites
quote:
Original post by Invader X
Wow! I didn''t know that the MSDN has Programming Windows 5th Edition online



Wow! Neither did I. Though it looks as if it''s only a couple chapters of it.

Oh well, I have the book, and the html version that comes with it has been sitting a few clicks away for some time.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!