Constructs and initializes the different member variables of the LAnimationWindow object.
#include "ltwrappr.h"
LAnimationWindow::LAnimationWindow()
LAnimationWindow::LAnimationWindow(hWndParent, pBitmapList=NULL, bAutoAnimate=FALSE, nID=0, dwStyle=WS_VISIBLE|L_BS_CENTER|L_BS_PROCESSKEYBOARD, x=0, y=0, nCX=200, nCY=200)
Handle to the parent window of the animation control.
Pointer to a valid LBitmapList object to be played. The passed list will be copied to an internal member and invalidated.
Flag that indicates whether to automatically animate the list. Possible values are:
Value | Meaning |
---|---|
TRUE | Automatically animate the list. |
FALSE | Do not automatically animate the list. |
Window ID. This is used if the window is created as a child window.
Window style.
X coordinate of the origin of the animation window.
Y coordinate of the origin of the animation window.
Width of the animation window.
Height of the animation window.
None.
LAnimationWindow::LAnimationWindow() is the default constructor for the LAnimationWindow class. You should stop animation playback before you destroy the object.
LAnimationWindow::LAnimationWindow(hWndParent, pBitmapList, bAutoAnimate, nID, dwStyle, x, y, nCX, nCY) sets the internal bitmap list to the passed pBitmapList. pBitmapList will be invalidated upon return.
Win32, x64.
//This is an example for LAnimationWindow::LAnimationWindow() :
L_INT LAnimationWindow_LAnimationWindowFirstExample()
{
LAnimationWindow MyAnimation;
//Constructor is called upon function entry
//...
//Use MyAnimation object
//...
//Destructor is called when the function returns
return SUCCESS;
}
//This is an example for LAnimationWindow::LAnimationWindow(hWndParent, pBitmapList, bAutoAnimate, nID, dwStyle, x, y, nCX, nCY):
L_INT LAnimationWindow_LAnimationWindowSecondExample(HWND hWndParent)
{
L_INT nRet;
LBase::LoadLibraries(LT_ALL_LEADLIB); //make sure all libraries are loaded
LBitmapList MyBitmapList; //Create a bitmaplist
nRet = MyBitmapList.Load (MAKE_IMAGE_PATH(TEXT("eye.gif")));
if (nRet==SUCCESS)
{
LAnimationWindow MyAnimation(hWndParent, /*Parent window*/
&MyBitmapList, /*Bitmaplist to assign to animation*/
TRUE, /*Auto play animation*/
0x0100, /*Child Window ID*/
WS_CHILD|WS_VISIBLE, /*Window style*/
0, /*Left position*/
0, /*Top position*/
300, /*Width*/
300/*Height*/ );
while (MyAnimation.IsPlaying())
{
if (MyAnimation.DoEvents())
break;
}
}
else
{
MessageBox(hWndParent, TEXT("Failed to load file"),TEXT("Error!"),MB_OK | MB_ICONSTOP);
return nRet;
}
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.