LBitmapList::SetBitmapList

#include "ltwrappr.h"

L_VOID LBitmapList::SetBitmapList(pBitmapList)

LBitmapList * pBitmapList;

/* pointer to an LBitmapList object */

Initializes the class object's bitmap list with the bitmap list from another LBitmapList object.

Parameter

Description

pBitmapList

Pointer to a bitmap list.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

If the class object already has a created bitmap list when this function is called, the bitmap list will be destroyed before it is set to the passed object's bitmap list.

This function will invalidate the passed object before returning.

Required DLLs and Libraries

LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members

Topics:

Raster Image Functions: Playing Animated Images

 

Implementing Animation

Example

L_INT LBitmapList__SetBitmapListExample(L_TCHAR  * pszFileName)
{
   L_INT nRet;
   LBitmapList BitmapList, NewBitmapList;
   nRet =BitmapList.Load (pszFileName);
   if(nRet !=SUCCESS)
      return nRet;
   // Initialize the NewBitmapList object with the loaded one
   NewBitmapList.SetBitmapList (&BitmapList);
      //...
   return SUCCESS;
}