#include "ltivw.h"
L_LTIVW_API L_VOID L_UseContainerControl(L_VOID)
Dynamically loads the DLL that provides support for the LTCONTAINERCLASS registered class.
Handle to the container
None.
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
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;
}