win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinOffsetRect (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINRECTANGLES
 
BOOL WinOffsetRect(hab, prcl, cx, cy)
HAB hab;        /* handle of the anchor block              */
PRECTL prcl;    /* address of the structure with rectangle */
SHORT cx;       /* horizontal offset                       */
SHORT cy;       /* vertical offset                         */
 
The WinOffsetRect function offsets a rectangle by adding a specified value
to both the left and right coordinates and adding a specified value to both
the top and bottom coordinates.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies an anchor block.
 
prcl       Points to the RECTL structure that contains the rectangle to be
           offset.
 
cx         Specifies the value of the horizontal offset. This value is added
           to the left and right sides of the rectangle.
 
cy         Specifies the value of the vertical offset. This value is added
           to the top and bottom sides of the rectangle.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinInflateRect, RECTL