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.
WinSetRect (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINRECTANGLES
 
BOOL WinSetRect(hab, prcl, xLeft, yBottom, xRight, yTop)
HAB hab;          /* handle of the anchor block                 */
PRECTL prcl;      /* address of structure with rectangle to set */
SHORT xLeft;      /* left side                                  */
SHORT yBottom;    /* bottom side                                */
SHORT xRight;     /* right side                                 */
SHORT yTop;       /* top side                                   */
 
The WinSetRect function sets rectangle coordinates. This function is
equivalent to assigning the left, top, right, and bottom arguments to the
appropriate fields of the RECTL structure. The coordinates of the rectangle
are sign-extended before being placed into the RECTL structure.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies an anchor block.
 
prcl       Points to a RECTL structure that contains the rectangle to be
           set.
 
xLeft      Specifies the left edge of the rectangle.
 
yBottom    Specifies the bottom edge of the rectangle.
 
xRight     Specifies the right edge of the rectangle.
 
yTop       Specifies the top edge of the rectangle.
 
Return Value
 
The return value is always TRUE.
 
See Also
 
WinSetRectEmpty, RECTL