Jump to content
  • Advertisement

Archived

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

exodus7

offsetting a point??

This topic is 5589 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 I’m having a problem offsetting a point. I have a CRect rectangle, which I want to load an Icon into the center. This however only takes the topleft of the icon and places this into the center. How can I offset this??? I’ve been looking at the CPoint operations and this looks like the way to go. Although I’m not sure how you use these operations. This is the statement I currently have dc.DrawIcon(rect.CenterPoint(),AfxGetApp()->LoadIcon(IDI_ICON1)); Thanks

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!