#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. | |
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
| 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. |
This example enables the probe tool callback.
#ifdef LImageViewerChildclass LImageViewerChild :public LImageViewerCell{virtual L_INT ProbeToolCallBack(L_HWND hCellWnd,L_INT nSubCellIndex,L_INT nX,L_INT nY,pBITMAPHANDLE pBitmap,L_TCHAR * szPixelValue);};#endifL_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;}