#include "ltwrappr.h"

virtual L_INT LImageViewerCell::PaintCallBack(hCellWnd, hMemDC, lpRect, nCellIndex, nSubCellIndex)

This function is called during the cell painting.


HWND hCellWnd

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


Handle to memory device context is used to paint the cell.


Pointer to a RECT structure that contains the client coordinates of the rectangle for the user to paint in.

L_INT nCellIndex

A zero-based index of the cell in which the callback will paint.

L_INT nSubCellIndex

A zero-based index into the image list attached to the cell specified in nCellIndex. This image is the one on which the callback will paint.


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


This callback function is called after painting everything in the cell (image, tags, rulers, annotations and region), so if user paints anything, it will be drawn as the top most.

To get the current callback function used to paint the cell, call the LImageViewerCell::EnablePaintCallBack function.

To set the callback function for painting the cell, call the LImageViewerCell::EnablePaintCallBack function.

Required DLLs and Libraries

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

LEADTOOLS Medical Image Viewer C++ Class Library Help