LImageViewerCell::TagCallBack

#include "ltwrappr.h"

virtual L_INT LImageViewerCell::TagCallBack (hCellWnd, nCellIndex, hDC, lpRect);

HWND hCellWnd;

/* handle to the cell window */

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.

Parameter

Description

hCellWnd

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

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 LImageViewerCell::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:

LImageViewerCell::EnableTagCallBack, LImageViewerCell::EnableTagCallBack, LImageViewerCell::ActionCallBack, Class Members

Topics:

Image Viewer Cells

 

Window Control/Image Viewer Functions: Image Viewer Cells

Example

For an example, refer to LImageViewer::Create.