Share via


InsetRect (Compact 2013)

3/28/2014

This macro calls the InflateRect function, passing in the negative value of the specified x- and y-coordinates.

Syntax

BOOL InsetRect( 
  LPRECT lprc, 
  int dx, 
  int dy 
);

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 increase the width.
  • dy
    Specifies the amount to increase or decrease the rectangle height. This parameter must be negative to increase the height.

Return Value

TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.

Requirements

Header

windowsx.h

See Also

Reference

GDI Macros
Shell Macros
InflateRect