L_DispContainerGetCellBitmapList
#include "ltivw.h"
L_INT EXT_FUNCTION L_DispContainerGetCellBitmapList(hCon, nCellIndex, phBitmapList, uFlags)
HDISPCONTAINER hCon; |
/* handle to the container */ |
L_INT nCellIndex; |
/* index of a cell */ |
HBITMAPLIST L_FAR * phBitmapList; |
/* pointer to a variable to be updated */ |
L_UINT uFlags; |
/* reserved for future use */ |
Gets the bitmap list attached to the specified cell. This function is available only in the Medical Imaging Suite toolkits.
Parameter |
Description |
hCon |
Handle to the container. |
nCellIndex |
A zero-based index of the cell for which to get the bitmap list. |
phBitmapList |
Pointer to the variable to be updated with the cell's bitmap list. |
uFlags |
Reserved for future use. Must be zero. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
If the cell at the specified index has no image, phBitmapList will be NULL.
Call L_DispContainerSetCellBitmapList to set the bitmap list for a cell.
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
Example
// This function removes the specified cell without removing its image list.
L_VOID RemoveCell(HBITMAPLIST L_FAR * hBitmapList, L_INT nCellIndex)
{
L_INT nCount = L_DispContainerGetCellCount (hCon, 0);
// Check the validity of the cell index
if ((nCellIndex < 0) || (nCellIndex >= nCount))
return;
// retrieve the bitmap list.
L_DispContainerGetCellBitmapList(hCon, nCellIndex, hBitmapList, 0);
// remove the cell
L_DispContainerRemoveCell (hCon, nCellIndex, FALSE, 0);
}