Gets the parent medical viewer handle.
#include "ltwrappr.h"
HDISPCONTAINER LImageViewerCell::GetHandle()
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.
if no parent medical viewer is assigned to this cell, this the return value is NULL.
This example check whether the medical viewer is initialized or not.
L_INT MyLImageViewer_GetHandleExample(LImageViewer& ImageViewerCell)
{
if (ImageViewerCell.GetHandle() == NULL)
return ERROR_INV_PARAMETER;
else
return SUCCESS;
}