LAutomation::RemoveContainer

Summary

Removes the specified container from the automation list of containers.

Syntax

#include "ltwrappr.h"

L_INT LAutomation::RemoveContainer (pLContainer);

Parameters

LContainer * pLContainer

Pointer to an LContainer object that references the container to remove.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Removing the container from the automation list of containers will remove the automation functionality from that container and the window that owns it.

When working with vector automation, the user must free any vector handles associated with the automation container.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example shows how to remove some container from the automation.

L_INT LAutomation_RemoveContainerExample(LAutomation &Automation, LContainer &Container) 
{ 
   L_INT nRet; 
 
   nRet = Automation.IsValid (); 
 
   if ( SUCCESS == nRet ) /* check the validity of the automation handle */ 
 
   { 
 
      nRet = Container.IsValid (); 
      if ( SUCCESS == nRet ) /* check the validity of the container handle */ 
 
      { 
 
         /* Remove the container from the automation */ 
 
         nRet = Automation.RemoveContainer (&Container ) ; 
         if(nRet != SUCCESS) 
            return nRet; 
 
         /* Free the container handle */ 
 
         nRet = Container.Free () ; 
         if(nRet != SUCCESS) 
            return nRet; 
 
      } 
 
      else 
 
      { 
 
         return nRet ; 
 
      } 
 
   } 
 
   else 
 
   { 
 
      return nRet ; 
 
   } 
 
   return SUCCESS ; 
 
} 

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.