LImageListControl::Remove

#include "ltwrappr.h"

L_INT LImageListControl::Remove(nIndex)

L_INT nIndex;

/* index of the item to remove */

Removes the specified item from the ImageList Control.

Parameter

Description

nIndex

0-based index that indicates which item to remove.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function will remove the specified item from the list.

Note: On an insert, the image and text (if any) are copied to internal storage. The ImageList Control will free its copy of the image and/or text when the item is deleted. You are responsible for freeing the original data when it is no longer needed by your application.

Required DLLs and Libraries

LTDIS
LTFIL
LTIMG

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

Platforms

Win32, x64.

See Also

Functions:

Class Members

Topics:

Using the ImageList Control

Example

L_INT LImageListControl__RemoveExample()
{
   L_INT nRet;
   LImageListControl m_ImgList;
   // remove the first item from the control
   nRet = m_ImgList.Remove(0);
   if(nRet != SUCCESS)
      return nRet;
   return SUCCESS;
}