DISPCONTAINERTAGCALLBACK

#include "ltivw.h"

L_INT pEXT_CALLBACK YourFunction(hCellWnd, nCellIndex, hDC, lpRect, pUserData)

This callback function is called before the window control paints a cell that contains an owner draw tag.

Parameters

L_HWND hCellWnd

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

L_INT nCellIndex

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

HDC hDC

Memory DC that is used to paint the cell.

RECT * lpRect

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

L_VOID * pUserData

A void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of L_DispContainerSetTagCallBack.) Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.

Returns

Value Meaning
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 L_DispContainerSetTagCallback.

To get the current callback function used to draw custom tags, call L_DispContainerGetTagCallBack.

Required DLLs and Libraries

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

LEADTOOLS Medical Image Viewer C API Help