LImageViewerCell::EnableProbeToolCallBack

#include "ltwrappr.h"

L_BOOL LImageViewerCell::EnableProbeToolCallBack(bEnable);

Enables or disables the LImageViewerCell::ProbeToolCallBack function.

Parameters

L_BOOL bEnable

Flag that indicates whether to enable or disable the LImageViewerCell::ProbeToolCallBack function. Possible values are:

Value Meaning
TRUE Enables the LImageViewerCell::ProbeToolCallBack function.
FALSE Disables the LImageViewerCell::ProbeToolCallBack function.

Returns

The previous setting.

Comments

Call this function to enable or disable the built-in tag callback overridable function for your class object. This will enable or disable the callback functions, which exist in the calling object.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example enables the probe tool callback.

#ifdef LImageViewerChild  
class LImageViewerChild :public LImageViewerCell 
{ 
   virtual L_INT ProbeToolCallBack(L_HWND hCellWnd, 
                                   L_INT nSubCellIndex, 
                                   L_INT nX, 
                                   L_INT nY, 
                                   pBITMAPHANDLE pBitmap, 
                                   L_TCHAR * szPixelValue); 
}; 
#endif 
 
L_INT LImageViewerChild::ProbeToolCallBack(L_HWND hCellWnd, 
                                           L_INT nSubCellIndex, 
                                           L_INT nX, 
                                           L_INT nY, 
                                           pBITMAPHANDLE pBitmap, 
                                           L_TCHAR * szPixelValue) 
{ 
   UNREFERENCED_PARAMETER(pBitmap); 
   UNREFERENCED_PARAMETER(nSubCellIndex); 
   UNREFERENCED_PARAMETER(hCellWnd); 
 
   wsprintf(szPixelValue, TEXT("X Value = %d and Y Value = %d"), nX, nY); 
 
   return SUCCESS; 
} 
 
L_INT LImageViewer_EnableProbeToolCallBackExample(LImageViewerCell& ImageViewerCell) 
{ 
   ImageViewerCell.EnableProbeToolCallBack(TRUE); 
 
   return SUCCESS; 
} 

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

LEADTOOLS Medical Image Viewer C++ Class Library Help