LImageViewer::GetCellsCount
#include "ltwrappr.h"
L_INT LImageViewer::GetCellsCount (uFlags);
L_UINT uFlags; |
/* reserved for future use */ |
Returns the number of cells managed by the container. This function is available only in the Medical Imaging Suite toolkits.
Parameter |
Description |
uFlags |
Reserved for future use. Pass 0. |
Returns
>= 0 |
The number of cells managed by the container. |
< 0 |
An error occurred. Refer to Return Codes. |
Comments
To add cells to the container, call LImageViewer::InsertCell. To remove one or more cells from the container, call LImageViewer::RemoveCell.
Please note that the maximum number of rows that a container can have is 4 and the maximum number of columns is 8. However, the number of cells that can be added to a container is limited only by the available memory.
Required DLLs and Libraries
LTDCNT 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
void GetcellscountExample(LImageViewerChild& ImageViewer) { // This procedure unfreezes any freezed cells and vice versa L_INT nRet = 0 ; // Get the cells count. L_INT nCount = ImageViewer.<span style="font-weight:bold; ">GetCellsCount(0); // if there is a Freezed cell make it unfreezed and vice versa for (L_INT nI = 0; nI < nCount; nI++) nRet = ImageViewer.FreezeCell(nI, !(ImageViewer.IsCellFrozen(nI, 0)), 0); }