i am writing my first game in VC++ SDK Snakes and ladders.
in the game every time a new player throws the dice and moves to the new position i have to load the bitmap of player token on the new position and remove it from the old for this purpose i am calling InvalidateRect() and invalidating the rectangle of the old position and set a flag so that in paint it will now load at a new position but when i pass Hwnd parameter as the handle to the window it does not Post a paint message immediately , but when i pass Null to it it does and the whole game board is refreshed and new position restored.
can anyone tell me how i can get the Paint message posted so that i can refresh immediately and only that portion which i hae Invalidated .
also i have to then right this entire code in class wrppaers so can anyone tell me from wher i can get class wrapper codes of any information on how wrap these window creatin etc code in class wrappers. i am not supposed to use MFC hence i have to wrap it in my own classes.