Advertisement

MFC windows games

Started by March 04, 2003 02:36 PM
0 comments, last by exodus7 21 years, 8 months ago
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
there is only one way
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.
<=- Talon -=>

This topic is closed to new replies.

Advertisement