Archived

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

exodus7

offsetting a point??

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