Frees the container handle.
#include "LtCon.h"
L_LTCON_API L_INT L_ContainerFree(pContainer)
Pointer to a container handle.
| Value | Meaning |
|---|---|
| SUCCESS | The function was successful. |
| < 1 | An error occurred. Refer to Return Codes. |
Freeing the container handle will detach it from its owner window.
This example checks the validity of the container handle and then frees it.
L_INT ContainerFreeExample(pCONTAINERHANDLE pContainer){L_INT nRet = L_ContainerIsValid ( pContainer );if (SUCCESS == nRet ) /* check the validity of container handle */{/* Free the container handle */nRet = L_ContainerFree ( pContainer ) ;}return nRet;}