LContainer::SetOwner

Summary

Sets the container owner window.

Syntax

#include "Ltwrappr.h"

L_INT LContainer::SetOwner (hWndOwner)

Parameters

HWND hWndOwner

Handle of the window to set as the owner of the container.

Returns

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

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will set a new owner to the container.

L_INT LContainer_SetOwnerExample(HWND hwndNewOwner, LContainer lcont) 
{ 
   L_INT nRet ; 
 
   nRet = lcont.IsValid (); 
 
   if ( nRet == SUCCESS ) /* check the validity of container handle */ 
 
   { 
 
      /* Set the window new owner window */ 
 
      nRet = lcont.SetOwner (hwndNewOwner ); 
      if(nRet != SUCCESS) 
         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.