Compartilhar via


InflateRect (Windows CE 5.0)

Send Feedback

This function increases or decreases the width and height of the specified rectangle.

InflateRect adds dx units to the left and right ends of the rectangle and dy units to the top and bottom.

The dx and dy parameters are signed values.

Positive values increase the width and height.

Negative values decrease them.

BOOLInflateRect(LPRECTlprc, intdx, intdy);

Parameters

  • lprc
    Long pointer to the RECT structure that increases or decreases in size.

  • dx
    Specifies the amount to increase or decrease the rectangle width.

    This parameter must be negative to decrease the width.

  • dy
    Specifies the amount to increase or decrease the rectangle height.

    This parameter must be negative to decrease the height.

Return Values

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Rectapi.lib.

See Also

InsetRect | IntersectRect | OffsetRect | UnionRect | RECT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.