ZeeImage Control Message

ZIM_SETANIMATELOOP


ZIM_SETANIMATELOOP

An application sends a ZIM_SETANIMATELOOP to define how many times an animation will loop to play again before stopping.

ZIM_SETANIMATELOOP
wParam = (WPARAM)(int) iLoops;          //Number of times to loop.
lParam = 0;                             //Not used.  Set to 0.

Parameters

iLoops
The value of wParam. The number of times the animation will loop and play again.

lParam
The value of lParam. Not used. Set to 0.

Return Values

This message does not return a value.

Example


SendMessage(himage,ZIM_SETANIMATELOOP,5,0);
//This will cause the animation to play 6 times then stop.

Note:

Remember that the value of wParam (iLoops) is the number of times the animation will loop, which will be one less than the number of times it plays. Set to -1 for infinite looping, 0 for no looping or play once, 1 to loop once or play twice, etc.

Copyright © 2020 by David Hillard