L_DispContainerSetBounds

#include "ltivw.h"

L_LTIVW_APIL_INTL_DispContainerSetBounds(hCon, lpRect, uFlags)

Sets the bounding rectangle for the container.

Parameters

HDISPCONTAINERhCon

Handle to the container.

RECT* lpRect

指针指向一个矩形结构,包含了伯恩ding rectangle to set for the container. This bounding rectangle is relative to the upper left corner of the parent windows client area.

L_UINTuFlags

Reserved for future use. Pass 0.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer toReturn 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.

CallL_DispContainerGetBoundsto get the current bounding rectangle for the container.

Required DLLs and Libraries

See Also

Functions

Topics

Example

When the user resizes the container parent window, the container window will be resized to fit the new size of the parent client area.

L_INT DispContainerSetBoundsExample(HDISPCONTAINER hCon,HWND hWndParent,L_UINT uState,L_INT nCx,L_INT nCy){L_INT nRet;UNREFERENCED_PARAMETER(nCx);UNREFERENCED_PARAMETER(nCy);UNREFERENCED_PARAMETER(uState);RECT rcRect;GetClientRect(hWndParent, &rcRect);nRet = L_DispContainerSetBounds(hCon, &rcRect, 0);if(nRet != SUCCESS)returnnRet;returnSUCCESS;}

LEADTOOLS Medical Image Viewer C API Help
188金宝搏的网址客服|Support|Contact Us|Intellectual Property Notices
© 1991-2021LEAD Technologies, Inc.All Rights Reserved.