Increases or decreases the width and height of the specified rectangle.
BOOL InflateRect( RECT * lprc, int dx, int dy )
Returns TRUE for success.
EX1
void InflateRect_Ex1() { RECT rect ; rect.left=20; rect.top=20; rect.right=60; rect.bottom=60; if(InflateRect(&rect,10,-10)) { printf("now the rect inflate to :"); printf("left:%d top:%d right:%d bottom:%d\n",rect.left,rect.top,rect.right,rect.bottom);; } }
The InflateRect function 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, and negative values decrease them.
OffsetRect
origin.h