LImageViewerCell::PrePaintCallBack

#include "ltwrappr.h"

virtual L_INT LImageViewerCell::PrePaintCallBack(hCellWnd, pCellInfo)

HWND hCellWnd;

handle to the cell window

pDISPCONTAINERCELLINFO pCellInfo;

pointer to a cell information structure

This callback function is called before painting the cell or sub-cell.

Parameter

Description

hCellWnd A handle to the window that represents the Medical Viewer Cell.
pCellInfo Pointer to the DISPCONTAINERCELLINFO structure to be updated with the cell information.

Returns

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

Comments

In order to use this callback function, it must first be set by calling the LImageViewerCell::EnablePrePaintCallBack function.

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: LImageViewerCell::EnableLowMemoryUsageCallBack, LImageViewerCell::LowMemoryUsageCallBack, LImageViewerCell::RegionCallBack, LImageViewerCell::EnableRegionCallBack, LImageViewerCell::EnableMouseCallBack,  LImageViewerCell::ActionCallBack, LImageViewerCell::TagCallBack, LImageViewerCell::EnableTagCallBack, LImageViewerCell::EnableAnnotationCallBack, LImageViewerCell::EnableAnnotationCreatedCallBack, LImageViewerCell::EnablePrePaintCallBack, LImageViewerCell::EnablePostPaintCallBack, LImageViewerCell::PostPaintCallBack, Class Members
Topics: Image Viewer Cells
Image Viewer Functions: Callbacks
Image Viewer Functions: Image Viewer Cells

Example

This example hides the odd frames

#ifdef LImageViewerChild 
class LImageViewerChild :public LImageViewerCell 
{ 
   virtual L_INT PrePaintCallBack(HWND hCellWnd, pDISPCONTAINERCELLINFO pCellInfo); 
}; 
#endif 
L_INT LImageViewerChild::PrePaintCallBack(HWND hCellWnd, pDISPCONTAINERCELLINFO pCellInfo) 
{ 
   UNREFERENCED_PARAMETER(hCellWnd); 
   if ((pCellInfo->nSubCellIndex | 0x1) != pCellInfo->nSubCellIndex) 
   { 
      FillRect(pCellInfo->hDC, &pCellInfo->rcRect, (HBRUSH)GetStockObject(GRAY_BRUSH)); 
      return FAILURE; 
   } 
   return SUCCESS; 
} 
L_INT LImageViewer_PrePaintExample(LImageViewerCell& ImageViewerCell) 
{ 
   ImageViewerCell.EnablePrePaintCallBack(TRUE); 
   return SUCCESS; 
} 

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