LBitmapList::SetBitmapList

#include "ltwrappr.h"

L_VOID LBitmapList::SetBitmapList(pBitmapList)

LBitmapList L_FAR * 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_VOID TestSetBitmapList(L_TCHAR L_FAR * pszFileName)
{
   LBitmapList BitmapList, NewBitmapList;

   BitmapList.Load (pszFileName);
   // Initialize the NewBitmapList object with the loaded one
   NewBitmapList.SetBitmapList (&BitmapList);
   //...
}