#include "ltwrappr.h"
HDISPCONTAINER LImageViewer::GetHandle()
Gets the medical viewer handle.
| Value | Meaning |
|---|---|
| HDISPCONTAINER | The function was successful. |
| NULL | An error occurred. Error can be retrieved from GetLastError(). Refer to Return Codes. |
This method is used to get the handle in order to be able to run the medical viewer C API functions.
Required DLLs and Libraries
This example check whether the medical viewer is initialized or not.
L_INT LImageViewer_GetHandleExample(LImageViewer& ImageViewer){if (ImageViewer.GetHandle() == NULL)return ERROR_INV_PARAMETER;elsereturn SUCCESS;}