LContainer::Update

#include "Ltwrappr.h"

L_INT LContainer::Update (prcPaint)

Updates the container client area.

Parameters

LPRECT prcPaint

Pointer to the RECT structure that contains the coordinates of the smallest rectangle that completely encloses the region of the container to update. These coordinates are with respect to the client area of the window that owns the container. The rectangle coordinates are logical coordinates .If this parameter is NULL, this function will update the entire container owner client area.

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 update the container current drawing (if any).

L_INT LContainer_UpdateExample( LContainer & lcont) 
 
{ 
   L_INT nRet; 
 
   nRet = lcont.IsValid (); 
 
   if ( nRet == SUCCESS ) /* check the validity of container handle */ 
 
    { 
 
      HWND hWndOwner ; 
 
      RECT rcOwnerClient ; 
 
      /* Get the container owner window */ 
 
     nRet = lcont.GetOwner (&hWndOwner ) ; 
     if(nRet != SUCCESS) 
        return nRet; 
 
      /* Get the owner client rectangle */ 
 
      ::GetClientRect ( hWndOwner, &rcOwnerClient ) ;  
 
      /* Update the container drawing to the screen */ 
 
     nRet = lcont.Update (&rcOwnerClient ) ; 
     if(nRet != SUCCESS) 
        return nRet; 
 
    } 
 
   else 
 
   { 
 
      return nRet ; 
 
   } 
 
   return SUCCESS ; 
 
} 

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Container and Automation C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.