L_DispContainerIsCellFrozen

Summary

Returns a value that indicates whether the specified cell is frozen.

Syntax

#include "ltivw.h"

L_LTIVW_API L_BOOL L_DispContainerIsCellFrozen(hCellWnd, uFlags)

Parameters

L_HWND hCellWnd

A handle to the window that represents the cell on which the function's effect will be applied.

L_UINT uFlags

Reserved for future use. Pass 0.

Returns

Value Meaning
TRUE The cell is frozen.
FALSE The cell is not frozen, or an error occurred. To get extended error information, call GetLastError.

Comments

To freeze or un-freeze a cell, call L_DispContainerFreezeCell.

When a cell is frozen no actions using the mouse or the keyboard can be performed on the cell. Some cell properties can still be changed manually however, using L_DispContainerSetCellProperties, L_DispContainerSelectCell and L_DispContainerSetProperties. For more information on actions associated with a container, refer to Applying Actions.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This procedure unfreezes any frozen cell

L_INT DispContainerIsCellFrozenExample(HDISPCONTAINER hCon)  
{ 
   L_INT nRet; 
   // Get the cells count.  
   L_INT nCount = L_DispContainerGetCellCount (hCon, 0);  
   L_INT nI;  
 
   for (nI = 0; nI < nCount; nI++) 
   { 
      HWND hCellWnd = L_DispContainerGetCellWindowHandle(hCon, nI, 0); 
 
      // if there is a selected cell make it unselected and vice versa 
      L_BOOL bFreezed = L_DispContainerIsCellFrozen(hCellWnd, 0);  
      if (bFreezed)  
      { 
         nRet = L_DispContainerFreezeCell (hCellWnd, FALSE, 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 API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.