This callback function is called before the window control paints a cell that contains an owner draw tag.
#include "ltwrappr.h"
virtual L_INT LImageViewerCell::TagCallBack (hCellWnd, nCellIndex, hDC, lpRect);
A handle to the window that represents the Medical Viewer Cell.
Index of the cell, which has the owner draw tag.
Memory DC that is used to paint the cell.
Pointer to a RECT structure that contains the area of the owner draw tag in the Memory DC.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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.
For an example, refer to LImageViewer::Create.