#include "ltwrappr.h"
virtual L_INT LImageViewerCell::ProbeToolCallBack(hCellWnd, nSubCellIndex, nX, nY, pBitmap, szPixelValue);
L_HWND hCellWndl; |
handle to the cell window |
L_UINT nSubCellIndex; |
index into the image list attached to the cell |
L_INT nX; |
X mouse position |
L_INT nY; |
Y mouse position |
pBITMAPHANDLE pBitmap; |
handle to the bitmap |
L_TCHAR * szPixelValue; |
string containing a probe tool text |
This callback function is called every time the probe tool changes its location, thus updating its text.
Parameter | Description | |
hCellWnd | A handle to the window that represents the Medical Viewer Cell. | |
nSubCellIndex | A zero-based index of the sub-cell where the probe tool is displayed. | |
nX | A Value that represents the X position of the cursor. | |
nY | A Value that represents the Y position of the cursor. | |
pBitmap | Pointer to a bitmap handle that is set in the specific sub-cell. | |
szPixelValue | A string that contain probe tool text. the user can update this text to display on the probe tool instead. |
SUCCESS | The function was successful. |
1 | An error occurred. Refer to Return Codes. |
To enable or disable the current callback use the method LImageViewerCell::EnableProbeToolCallBack.
To enable the probe tool action, first use the function LImageViewerCell::AddAction, then use the function LImageViewerCell::SetAction using the flag CONTAINER_ACTION_PROBETOOL.
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. |
For an example, refer to LImageViewerCell::EnableProbeToolCallBack.