Jump to content
  • Advertisement


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


About windows Rectangles

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

In my book it only showed how to make a rectangle the size of a window. It never showed how to position a rectangle if you wanted one within your window could someone plz show an example of how to do this, it would be greatly appreciated. THNX
Favorite Quotes:Gandalf: You shall not pass!|Gollum: My Precious!|Smeagol: My little hobbitses.|

Share this post

Link to post
Share on other sites
All you need to do is change the values...
Rect.left, Rect.right, Rect.top, Rect.bottom

or you could declare them like this...

RECT Rect = { x, y, w, h };

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.

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!