Returns the number of cells managed by the container.
L_LTIVW_API L_INT L_DispContainerGetCellCount(hCon, uFlags)
Handle to the container.
Reserved for future use. Pass 0.
|>= 0||The number of cells managed by the container.|
|< 0||An error occurred. Refer to Return Codes.|
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.
This procedure unfreezes any frozen cell
L_INT DispContainerGetCellCountExample(HDISPCONTAINER hCon)
// Get the cells count.
L_INT nCount = L_DispContainerGetCellCount(hCon, 0);
for (nI = 0; nI < nCount; nI++)
L_INT nCellIndex = 0;
HWND hCellWnd = L_DispContainerGetCellWindowHandle(hCon, nCellIndex, 0);
// if there is a selected cell make it unselected and vice versa
L_BOOL bFreezed = L_DispContainerIsCellFrozen(hCellWnd, 0);
nRet = L_DispContainerFreezeCell (hCellWnd, FALSE, 0);
if(nRet != SUCCESS)