LImageViewerCell::EnableProbeToolCallBack

#include "ltwrappr.h"

L_BOOL LImageViewerCell::EnableProbeToolCallBack(bEnable);

L_BOOL bEnable;

flag

Enables or disables the LImageViewerCell::ProbeToolCallBack function.

Parameter Description
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

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: LImageViewerCell::ProbeToolCallBack, LImageViewerCell::ActionCallBack, LImageViewerCell::TagCallBack, Class Members
Topics: Image Viewer Cells
Image Viewer Functions: Callbacks
Image Viewer Functions: Image Viewer Cells

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Medical Image Viewer C++ Class Library Help