InflateRect

CRect::InflateRect

void InflateRect( int x, int y ); void InflateRect( SIZE size ); void InflateRect( LPCRECT lpRect ); void InflateRect( int l, int t, int r, int b );

参数: x 指定扩大CRect左和右边的单位数。 y 指定扩大CRect上、下边的单位数。 size 一个指定扩大CRect的单位数的SIZE或CSize。cx值指定扩大左、右边的单位数,cy指定扩大上、下边的单位数。 lpRect 指向一个RECT结构或CRect,指定扩大每一边的单位数。 l 指定扩大CRect左边的单位数。 t 指定扩大CRect上边的单位数。 r 指定扩大CRect右边的单位数。 b 指定扩大CRect下边的单位数。

CRect::DeflateRect

void DeflateRect( int x, int y ); void DeflateRect( SIZE size ); void DeflateRect( LPCRECT lpRect ); void DeflateRect( int l, int t, int r, int b );

参数: x 指定缩小CRect的左和右边的单位数。 y 指定缩小CRect的上、下边的单位数。 size 一个指定缩小CRect的单位数的SIZE或CSize。cx值指定缩小左、右边的单位数,cy指定缩小上、下边的单位数。 lpRect 指向一个RECT结构或CRect,指定缩小每一边的单位数。 l 指定缩小CRect左边的单位数。 t 指定缩小CRect上边的单位数。 r 指定缩小CRect右边的单位数。 b 指定缩小CRect下边的单位数。

// Windows GDI InflateRect The InflateRect function increases or decreases the width and height of the specified rectangle. 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.

BOOL InflateRect (  LPRECT lprc, // rectangle  int  dx,  // amount to adjust width  int  dy  // amount to adjust height );

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值