LImageViewer::GetHandle

#include "ltwrappr.h"

HDISPCONTAINER LImageViewer::GetHandle()

Gets the medical viewer handle.

Returns

HDISPCONTAINER

The function was successful.

NULL

An error occurred. Error can be retrieved from GetLastError(). Refer to Return Codes.

Comments

This method is used to get the handle in order to be able to run the medical viewer C DLL functions.

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.

See Also

Functions:

LImageViewer::Create, LImageViewer::Destroy, LImageViewer::SetProperties, LImageViewer::GetProperties, LImageViewer::GetHandle, LImageViewer::GetCellWindowHandle, LImageViewer::GetWindowHandle

Topics:

Using the Image Viewer

 

Window Control/Image Viewer Functions: Using the Image Viewer

Example

This example check whether the medical viewer is initialized or not.

#if defined LTV17_CONFIG
L_INT LImageViewer_GetHandleExample(LImageViewer& ImageViewer)
{
   if (ImageViewer.GetHandle() == NULL)
      return ERROR_INV_PARAMETER;
   else
      return SUCCESS;
}
#else
L_INT LImageViewer_GetHandleExample(LImageViewer& ImageViewer)
{
   if (ImageViewer.GetHandle() == NULL)
      return ERROR_INV_PARAMETER;
   else
      return SUCCESS;
}
#endif // LTV17_CONFIG