标签:
矩形结构的原型:
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变量的三种方法:
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);
更新中……
标签:
原文地址:http://www.cnblogs.com/2016Study/p/5430517.html