
Originally Posted by
opus
Hey Pino, your ICards class did help me a lot in understanding the usage of cards.
I have one remark on speed of drawing when using your class.
You use GethDCc and ReleasehDC for each and every card-drawing seperatly.
When drawing only a limited number of cards that would be no problem, however in a patience like game (like FreeCells) you could have 2 complete decks on screen (104 cards), in this case this way of dealing with the hDC will consume much time.
I suggest to do the GethDC/ReleasehDC only once for each COMPLETE drawing action.