LContainer::SetOwner

#include "Ltwrappr.h"

L_INT LContainer::SetOwner (hWndOwner)

HWND hWndOwner;

/* window handle */

Sets the container owner window.

Parameter

Description

hWndOwner

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

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries

LTCON

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LContainer::Create, LContainer::GetOwner

Topics:

Getting and Setting Container Properties

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;
}