This callback function is called before the window control paints a cell that contains an owner draw tag.
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.
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.
|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 L_DispContainerSetTagCallback.
To get the current callback function used to draw custom tags, call L_DispContainerGetTagCallBack.
For an example, refer to L_DispContainerCreate.