#include "ltwrappr.h"
L_INT LImageViewerCell::GetActiveSubCell (pnSubCellIndex, uFlags);
Returns the active sub-cell index.
pointer to a variable to be updated with the index of the active sub-cell.
Reserved for future use. Pass 0.
Value | Meaning |
---|---|
>= 0 | The number of cells managed by the container. |
< 0 | An error occurred. Refer to Return Codes. |
Required DLLs and Libraries
This example returns the index of the active sub-cell of the first cell in the medical viewer.
#if defined(LEADTOOLS_V175_OR_LATER)
int LImageViewerCell__GetActiveSubCell(LImageViewer& ImageViewer)
{
// This procedure unfreezes any frozen cells and vice versa
L_INT nRet = 0 ;
// Get the cells count.
LImageViewerCell * ImageViewerCell;
L_INT nSubCellIndex;
// if there is a Freezed cell make it unfreezed and vice versa
ImageViewerCell = ImageViewer.GetCellHandle(0, 0);
nRet = ImageViewerCell->GetActiveSubCell(&nSubCellIndex, 0);
return nSubCellIndex;
}
#endif // LEADTOOLS_V175_OR_LATER