Archived

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

MFC windows games

This topic is 5401 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 currently working on a windows version of tick tack toe. I''m having problems centering my icons into the middle of a square. I''ve been using the CenterPoint function from the CRect class, but this only takes the the top left point of the icon. Any suggestions on how I can center my Icons. Also do any of you know any good MFC games sites cheers there is only one way

Share this post


Link to post
Share on other sites
Well Im just delving into mfc a little, I usually do most my needs with VB or win 32 api, however, why dont you just take your top left position x plus 1/2 width = x value, and top left position y + 1/2 height = y value.

Share this post


Link to post
Share on other sites