#include "ltwrappr.h"
L_BOOL LImageViewerCell::EnableProbeToolCallBack(bEnable);
Enables or disables the LImageViewerCell::ProbeToolCallBack function.
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. |
The previous setting.
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
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;
}