An application sends a ZIM_STARTANIMATE to begin playing an animation that begins with the slot or index specified in wParam and ends with the slot or index specified in lParam.
ZIM_STARTANIMATE
wParam = (WPARAM)(int) iBegin; //Beginning frame of animation
lParam = (LPARAM)(int) iEnd; //Ending frame of animation
This message does not return a value.
//Play a one second animation at 30 FPS that repeats 5 times
//The 30 animation frames or individual images have been loaded into slots or indexes 15 through 45
SendMessage(himage,ZIM_SETANIMATELOOP,4,0); //Loops 4 times. Plays 5 times.
SendMessage(himage,ZIM_SETANIMATEDELAY,33,0); //Set animation to play at 30 FPS
SendMessage(himage,ZIM_STARTANIMATE,15,45); //Start playing the animation. It will stop after it plays 5 times.