L_DispContainerGetActiveSubCell

#include "ltivw.h"

L_LTIVW_API L_INT L_DispContainerGetActiveSubCell(hCellWnd, nSubCellIndex, uFlags)

L_HWND hCellWnd;

handle to the cell window

L_INT * nSubCellIndex;

pointer to the variable to be updated

L_UINT uFlags;

reserved for future use

Gets the index of the active sub-cell.

Parameter

Description

hCellWnd

A handle to the window that represents the Medical Viewer Cell.

nSubCellIndex

Pointer to a variable to be updated with sub-cell index.

uFlags

Reserved for future use. Pass 0.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

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

Functions:

L_DispContainerGetActiveSubCellChangedCallBack, L_DispContainerSetActiveSubCellChangedCallBack

Topics:

Image Viewer Cells

 

Image Viewer Functions: Image Viewer Cells

Example

Retrieves the active sub-cell index of the first cell in the medical viewer.

#if defined LEADTOOLS_V175_OR_LATER 
L_INT DispContainerGetActiveSubCellExample(HDISPCONTAINER hCon) 
{ 
   L_INT nRet; 
   L_INT nSubCellIndex; 
   if (L_DispContainerGetCellCount(hCon, 0) == 0) 
   { 
      MessageBox(NULL, TEXT("you must at least have one cell added to the viewer"), TEXT("No Cell attached"), MB_OK); 
      return FAILURE; 
   } 
   HWND hCellWnd = L_DispContainerGetCellWindowHandle(hCon, 0, 0); 
   // Check if there is any action added to the container. 
   nRet = L_DispContainerGetActiveSubCell(hCellWnd, (L_INT *)&nSubCellIndex, 0); 
   if(nRet != SUCCESS) 
      return nRet; 
   return nSubCellIndex; 
} 
#endif 

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