LImageViewerCell::GetActiveSubCell

#include "ltwrappr.h"

L_INT LImageViewerCell::GetActiveSubCell (pnSubCellIndex, uFlags);

L_INT * pnSubCellIndex;

pointer to variable

L_UINT uFlags;

reserved for future use

Returns the active sub-cell index.

Parameter

Description

pnSubCellIndex

pointer to a variable to be updated with the index of the active sub-cell.

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.

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

Functions:

LImageViewer::Create, LImageViewer::InsertCell, LImageViewer::RemoveCell, 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, Class Members

Topics:

Image Viewer Cells

 

Window Control/Image Viewer Functions: Image Viewer Cells

Example

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 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Medical Image Viewer C++ Class Library Help