Function cdtAnimate

Function cdtAnimate(hDC As Long, ecbCardBack As ECardBack, _
x As Long, y As Long, _
iState As Long) As Long

This function animates the backs of cards by overlaying part of the card back with an alternative bitmap. It creates effects: blinking lights on the robot, the sun donning sunglasses, bats flying across the castle, and a card sliding out of a sleeve. The function works only for cards of normal size drawn with cdtDraw. To draw each state, start with iState set to 0 and increment through until cdt­Animate returns 0.