Animation Control Command Example

The following example makes the reference bitmap USANIMAT.BMP the hot spot for the “Drilling for Oil” animation window. The following command displays the animation sequence in the file SNDOIL.MMM:

!HAnimateCommand(hwndContext, qchPath, "animate\\sndoil.mmm","controlleft", "Drilling For Oil")

Notice that the reference to the animation sequence includes the path
from the project directory (\VIEWER\USA) to the animation sequence (ANIMATE\SNDOIL.MMM). Notice also that you must enter a double
backslash (\\) for each single backslash (\) in the path. Here's how this code
would look inside the Word topic file: