Frees the container handle.
#include "Ltwrappr.h"
L_INT LContainer::Free()
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.
L_INT LContainer_FreeExample(LContainer & lcon)
{
L_INT nRet;
nRet = lcon.IsValid ();
if ( nRet == SUCCESS) /* check the validity of container handle */
{
/* Free the container handle */
nRet = lcon.Free () ;
if(nRet != SUCCESS)
return nRet;
}
else
{
return nRet ;
}
return SUCCESS ;
}