• Advertisement


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

offsetting a point??

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