Archived

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

exodus7

MFC windows games

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