L_UseContainerControl

Summary

Dynamically loads the DLL that provides support for the LTCONTAINERCLASS registered class.

Syntax

#include "ltivw.h"

L_LTIVW_API L_VOID L_UseContainerControl(L_VOID)

Parameters

HDISPCONTAINER hCon

Handle to the container

Returns

None.

Comments

The LTCONTAINERCLASS registered class uses messages rather than function calls. Therefore, the required dynamic link library (LTIVW15u.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

See Also

Functions

Topics

Example

This function creates a container by loading the dlls and then create a window with a class name LTCONTAINERCLASS

L_INT UseContainerControlExample(HDISPCONTAINER hCon,HWND hWnd,HWND hCtl) 
{ 
   /* 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,  
                       (HINSTANCE)L_GETWINDOWLONGPTR(hWnd, GWLP_HINSTANCE),  
                       NULL);  
   ShowWindow (hCtl, SW_SHOW);  
 
   // Get the handle.  
   hCon = L_DispContainerGetHandle (hCtl);  
   return SUCCESS; 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Medical Image Viewer C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.