L_DispContainerGetPaintCallBack
#include "ltivw.h"
L_LTIVW_API L_INT L_DispContainerGetPaintCallBack(hCon, ppfnPaintCallBack, ppUserData)
| HDISPCONTAINER hCon; | /* handle to the container */ | 
| DISPCONTAINERPAINTCALLBACK * ppfnPaintCallBack; | /* pointer to paint callback function */ | 
| LPVOID * ppUserData; | /* pointer to user data */ | 
Gets the current paint callback function along with the user data, which were set using L_DispContainerSetPaintCallBack. This function is available only in the Medical Imaging Suite toolkits.
| Parameter | Description | 
| hCon | Handle to the container. | 
| ppfnPaintCallBack | Pointer to a pointer to a callback function to be updated with the last paint callback function set using L_DispContainerSetPaintCallBack. | 
| ppUserData | Void pointer to be updated with the user defined data associated with the paint callback. If you are not interested in the user-defined data, pass NULL for this parameter. | 
Returns
| SUCCESS | The function was successful. | 
| < 1 | An error occurred. Refer to Return Codes. | 
Comments
To set the callback function used to handle painting, call L_DispContainerSetPaintCallBack.
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: | DISPCONTAINERPAINTCALLBACK, L_DispContainerRepaintCell, L_DispContainerSetPaintCallBack. | 
| Topics: | 
Example
This function set a paint call back that draws an ellipse in the middle of the cell.
L_INT EXT_CALLBACK PaintCallBack(HDC hMemDC, LPRECT lpRect, L_INT, L_INT, L_VOID *)
{
   Ellipse(hMemDC, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom);
   return SUCCESS;
}
L_INT DispContainerGetPaintCallBackExample(HDISPCONTAINER hCon) 
{
   L_INT nRet;
   DISPCONTAINERPAINTCALLBACK OldPaintCallBack;
   nRet = L_DispContainerGetPaintCallBack(hCon, &OldPaintCallBack, NULL);
   nRet = L_DispContainerSetPaintCallBack(hCon, PaintCallBack, NULL);
   return SUCCESS;
}