InsetRect

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

At a Glance

Header file: Windowsx.h
Windows CE versions: 1.0 and later

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 Values

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

See Also

InflateRect