Jump to content
  • Advertisement
Sign in to follow this  

C++ Menu Creation

This topic is 3957 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.

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!