Jump to content
  • Advertisement
Sign in to follow this  

C++ Menu Creation

This topic is 3874 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

Hi everybody So I want to display a menu in dev-c++ for a windows game. I have created a window which draws a bitmap. Now I want to draw over this image some strings. My first thought was to create a couple of labels. The problem is that the label had a background of its own and I couldn't find a way to make it transparent. After searching the Internet I found an interesting function called DrawString. However I can't figure out the object that I am supposed to declare. You see the function is called like this: graphics.DrawString(); In all of the examples I found, the procedure is beeing called from inside the On_Paint event using the e argument. Unfortunately I want to call the procedure from an other place inside my code. Can anybody help me with either of these problems?? Or maybe tell me of another way to display the menu.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!