LImageViewer::RemoveCell

#include "ltwrappr.h"

L_INT LImageViewer::RemoveCell (nCellIndex, uFlags);

L_INT nCellIndex;

/* index of the cell to be removed */

L_UINT uFlags;

/* reserved for future use */

Removes a cell from the container.

Parameter

Description

nCellIndex

The zero-based index of the cell to be removed. Pass 1 to remove all cells. Removing the cell will not remove the attached image. Pass -1 to remove all cells. Pass -2 to remove the selected cells.

uFlags

Reserved for future use. Pass 0.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

When a cell is removed from the image viewer, any cells to the right or below the removed cell will be automatically shifted to the left, or up, to the end of the preceding row, as needed.

To insert a new cell, call LImageViewer::InsertCell.

When the container itself is no longer needed,call  the LImageViewer::Destroy function to destroy any cells within the container, any associated bitmaps, and any internal data.

Required DLLs and Libraries

LTIVW

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:

LImageViewer::Create, LImageViewer::InsertCell, LImageViewer::GetCellCount, LImageViewer::GetCellWindowHandle, LImageViewerCell::SetCellBitmapList, LImageViewerCell::SetCellTag, LImageViewerCell::SetCellProperties, LImageViewerCell::GetCellProperties, LImageViewer::GetCellPosition, LImageViewer::RepositionCell, LImageViewerCell::GetCellBitmapList, LImageViewer::GetCellBounds, LImageViewerCell::FreezeCell, LImageViewerCell::SelectCell, LImageViewerCell::IsCellSelected, LImageViewerCell::IsCellFrozen, LImageViewer::Destroy, Class Members

Topics:

Image Viewer Cells

 

Window Control/Image Viewer Functions: Image Viewer Cells

Example

For an example, refer to LImageViewer::Create.