LImageViewer::PaintCallBack

#include "ltwrappr.h"

virtual L_INT LImageViewer::PaintCallBack(hMemDC, lpRect, nCellIndex, nSubCellIndex)

HDC hMemDC;

/* handle to DC */

LPRECT lpRect;

/* pointer to rectangle */

L_INT nCellIndex;

/* index of the cell */

L_INT nSubCellIndex;

/* index of the sub-cell */

This function function is called during the cell painting. This function is available only in the Medical Imaging Suite toolkits.

Parameter

Description

hMemDC

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

LpRect

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

nCellIndex

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

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.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

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 LImageViewer::EnablePaintCallBack function.

To set the callback function for painting the cell, call the LImageViewer::EnablePaintCallBack 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:

LImageViewer::EnablePaintCallBack, LImageViewer::RepaintCell, LImageViewer::EnablePaintCallBack.

Topics:

Image Viewer Functions: Custom Painting

 

Custom Painting

Example

For an example, refer to LImageViewer::Create.