L_ContainerSetOwner

#include "LtCon.h"

L_LTCON_API L_INT L_ContainerSetOwner(pContainer, hWndOwner)

pCONTAINERHANDLE pContainer;

pointer to a container handle

L_HWND hWndOwner;

window handle

Sets the container owner window.

Parameter

Description

pContainer

Pointer to a container handle.

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:

L_ContainerCreate, L_ContainerGetOwner

Topics:

Getting and Setting Container Properties

Example

This example will set a new owner to the container.

L_INT ContainerSetOwnerExample(pCONTAINERHANDLE pContainer, 
HWND             hwndNewOwner) 
{ 
   L_INT nRet; 
   nRet = L_ContainerIsValid ( pContainer ); 
   if (SUCCESS == nRet ) /* check the validity of container handle */ 
   { 
      /* Set the window new owner window */ 
      nRet = L_ContainerSetOwner ( pContainer, hwndNewOwner ); 
   } 
   return nRet; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Container and Automation C API Help