LImageViewerCell::GetActionCount

Summary

Gets the number of actions associated with the container.

Syntax

#include "ltwrappr.h"

L_INT LImageViewerCell::GetActionCount (pnCount, uFlags);

Parameters

L_INT * pnCount

Pointer to a variable to be updated with number of actions associated with the container.

L_UINT uFlags

Reserved for future use. Pass 0.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Call LImageViewerCell::AddAction to add an action to a container and call LImageViewerCell::RemoveAction to remove an action from the container.

Required DLLs and Libraries

See Also

Functions

Topics

Example

Remove the actions and remove all the cells and the bitmap lists attached.

L_INT LImageViewer_GetActionCountExample(LImageViewer& ImageViewer)  
{ 
   L_INT    uCount;  
   L_UINT   nRet = 0 ;  
 
   // Check if there is any action added to the container.  
 
   LImageViewerCell * ImageViewerCell = ImageViewer.GetCellHandle(0, 0); 
 
   nRet = ImageViewerCell->GetActionCount(&uCount, 0);  
   if(nRet != SUCCESS) 
      return nRet; 
 
   // Remove all the actions.  
 
   if (uCount != 0)  
   { 
      nRet = ImageViewerCell->RemoveAction(-1, 0);  
      if(nRet != SUCCESS) 
         return nRet; 
   } 
 
   // Check if there is any cell inserted to the container.  
 
   uCount = ImageViewer.GetCellCount(0);  
 
   // Remove all the cells, along with the attached images.  
 
   if (uCount != 0)  
   { 
 
      nRet = ImageViewer.RemoveCell(-1, 0);  
      if(nRet != SUCCESS) 
         return nRet; 
   } 
 
   return SUCCESS; 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Medical Image Viewer C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.