Available in LEADTOOLS Medical Imaging toolkits. |
L_UseContainerControl
#include "ltivw.h"
L_LTIVW_API L_VOID L_UseContainerControl(L_VOID)
HDISPCONTAINER hCon; |
/* handle to the container */ |
Dynamically loads the DLL that provides support for the LTCONTAINERCLASS registered class.
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 (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
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: |
|
|
Example
This function creates a container by loading the dlls and then create a window with a class name LTCONTAINERCLASS
#if defined LEADTOOLS_V17_OR_LATER 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; } #else 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; } #endif