Rectangle矩形绘图函数
__gdi_entry WINGDIAPI BOOL WINAPI
Rectangle(
__in HDC hdc,
__in int left,
__in int top,
__in int right,
__in int bottom
);
Rectangle(hdc,100,100,800,400);
前面一对于__in不明白到底是什么意思
现在理解了,是用于标记是输入还是输出的意思,in表示输入值,out表示输出
#define __in
#define __in_z
#define __out
圆角矩形,在角上有一个矩形区域的长和款
__gdi_entry WINGDIAPI BOOL WINAPI
RoundRect(
__in HDC hdc,
__in int left,
__in int top,
__in int right,
__in int bottom,
__in int width, //圆角矩形角上的椭圆宽度
__in int height //圆角矩形角上的椭圆高度
);
Rectangle(hdc,100,100,800,400);