码迷,mamicode.com
首页 > 其他好文 > 详细

RECT

时间:2016-04-25 14:29:02      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:

矩形结构的原型:

技术分享
1 typedef struct tagRECT
2 {
3     LONG    left;
4     LONG    top;
5     LONG    right;
6     LONG    bottom;
7 } RECT, *PRECT, NEAR *NPRECT, FAR *LPRECT;
RECT原型

设置RECT变量的三种方法:

1、

RECT rect = {100,100, 300,200};

2、

rect.left = 100;
rect.top = 100;
rect.right = 200;
rect.bottom = 200;

3、掉用SetRect函数:

技术分享
SetRect(
    _Out_ LPRECT lprc,
    _In_ int xLeft,
    _In_ int yTop,
    _In_ int xRight,
    _In_ int yBottom);
SetRect原型

 

 

更新中……

RECT

标签:

原文地址:http://www.cnblogs.com/2016Study/p/5430517.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!