LImageViewer::SetBounds

#include "ltwrappr.h"

L_INT LImageViewer::SetBounds (lpRect, uFlags);

LPRECT lpRect;

pointer to a structure

L_UINT uFlags;

reserved for future use

Sets the bounding rectangle for the container.

Parameter

Description

lpRect

Pointer to a RECT structure that contains the bounding rectangle to set for the container. This bounding rectangle is relative to the upper left corner of the parent windows client area.

uFlags

Reserved for future use. Pass 0.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The coordinates of lpRect are relative to the parent window coordinates. If the container window has no parent, the coordinates will be relative to the screen coordinates.

Call LImageViewer::GetBounds to get the current bounding rectangle for the container.

Required DLLs and Libraries

LTIVW

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:

LImageViewer::Create, LImageViewer::GetBounds, LImageViewer::SetProperties, LImageViewer::GetProperties, LImageViewer::GetWindowHandle, LImageViewer::Destroy, Class Members

Topics:

Using the Image Viewer

 

Window Control/Image Viewer Functions: Using the Image Viewer

Example

L_INT LImageViewer_SetBoundsExample( CWnd* pParent, LImageViewer& ImageViewer) 
{ 
   L_INT nRet; 
   // When the user resizes the container parent window, 
   // the container window will be resized to fit the new size of the parent client area. 
   RECT rcRect; 
   pParent->GetClientRect(&rcRect); 
   nRet = ImageViewer.SetBounds(&rcRect, 0); 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Medical Image Viewer C++ Class Library Help