Creating a Container

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.

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

LEADTOOLS Container and Automation C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.