Determines whether auto animation is enabled.
#include "ltwrappr.h"
L_BOOL LAnimationWindow::IsAutoAnimateEnabled() const
The current state of auto animation. Possible values are:
| Value | Meaning |
|---|---|
| TRUE | Auto animation is enabled. |
| FALSE | Auto animation is disabled. |
When auto animation is enabled, animation playback will begin automatically upon calling LAnimationWindow::Load, LAnimationWindow::SetBitmapList, or when constructing new objects.
Win32, x64.
/*<documentation/>*/L_INT LAnimationWindow_IsAutoAnimateEnabledExample(HWND hWndParent){LBase::LoadLibraries(LT_ALL_LEADLIB);//make sure all libraries are loadedLAnimationWindow MyAnimation;L_INT nRetCode;MyAnimation.SetFileName(MAKE_IMAGE_PATH(TEXT("eye.gif")));MyAnimation.CreateWnd(hWndParent,0, WS_VISIBLE|WS_CHILD|WS_BORDER,0,0,300,300);nRetCode = MyAnimation.Load();if (nRetCode!=SUCCESS){MessageBox(hWndParent, TEXT("Failed to load file"),TEXT("Error!"),MB_OK | MB_ICONSTOP);return nRetCode;}//see if we need to call PlayAnimation or it has been calledif (!MyAnimation.IsAutoAnimateEnabled()){MessageBox(hWndParent,TEXT("Now invoking PlayAnimation..."),TEXT("Example"),MB_OK|MB_ICONINFORMATION);nRetCode = MyAnimation.PlayAnimation();if(nRetCode != SUCCESS)return nRetCode;}elseMessageBox(hWndParent,TEXT("AutoAnimate is enabled!"),TEXT("Example"),MB_OK|MB_ICONINFORMATION);while (MyAnimation.IsPlaying()){if (MyAnimation.DoEvents())break;}return SUCCESS;}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
