LImageViewer::TagCallBack

#include "ltwrappr.h"

L_INT LImageViewer::TagCallBack (nCellIndex, hDC, lpRect);

L_INT nCellIndex;

/* index of the cell that called the callback */

HDC hDC;

/* memory DC for painting */

RECT * lpRect;

/* pointer to a structure */

This callback function is called before the window control paints a cell that contains an owner draw tag. This function is available only in the Medical Imaging Suite toolkits.

Parameter

Description

nCellIndex

Index of the cell, which has the owner draw tag.

HDC

Memory DC that is used to paint the cell.

lpRect

Pointer to a RECT structure that contains the area of the owner draw tag in the Memory DC.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

When the window control paints a cell that contains an "owner draw" tag, this callback function is called to allow the user to draw a custom tag. This callback function is only called however, if it has been set by calling LImageViewer::EnableTagCallBack.

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::EnableTagCallBack, LImageViewer::EnableActionCallBack, LImageViewer::ActionCallBack, Class Members

Topics:

Image Viewer Cells

 

Window Control/Image Viewer Functions: Image Viewer Cells

Example

For an example, refer to LImageViewer::Create.