L_UseContainerControl

#include "ltivw.h"

L_VOID EXT_FUNCTION L_UseContainerControl(L_VOID)

HDISPCONTAINER hCon;

/* handle to the container */

Dynamically loads the DLL that provides support for the LTCONTAINERCLASS registered class. This function is available only in the Medical Imaging Suite toolkits.

Parameter

Description

hCon

Handle to the container

Returns

None.

Comments

The LTCONTAINERCLASS registered class uses messages rather than function calls. Therefore, the required dynamic link library (LTIVW14n.dll) is not loaded automatically. Therefore, the toolkit provides this dummy function in the DLL, which you can call before using the registered class messages.

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:

L_DispContainerCreate, L_DispContainerGetWindowHandle, L_DispContainerDestroy, L_DispContainerSetProperties, L_DispContainerGetProperties, L_DispContainerGetHandle

Topics:

Using the Image Viewer

 

Image Viewer Functions: Using the Image Viewer

Example

HWND hCtl; 
// This function creates a container by loading the dlls and then create a window with a class name LTCONTAINERCLASS
L_VOID CreateCntr(HWND hWnd) 
{
   /* create the container control */
   L_UseContainerControl(); /* make sure dll is loaded */
   hCtl = CreateWindow(LTCONTAINERCLASS, 
                       TEXT(""),
                       WS_CHILD | WS_BORDER, 
                       10, 
                       10, 
                       250, 
                       250, 
                       hWnd, 
                       NULL, 
                       GetWindowInstance(hWnd), 
                       NULL); 
   ShowWindow (hCtl, SW_SHOW); 

   // Get the handle. 
   hCon = L_DispContainerGetHandle (hCtl); 
}