After initializing the container handle, the container must be created using the LContainer::Create function. The container will be attached to the window handle passed to LContainer::Create. In the sample given below the container is created and attached to the window referenced by hWnd. The window referenced by hWnd becomes the owner of the container.
/* Create the container and attach it to its owner window */
lcont.Create (hWnd ) ;
In an MDI environment a single container can be initialized and created for every MDI child window.
The owner of a window can be changed. For more information, refer to Getting and Setting Container Properties.