勇芳软件工作室.汉化:  Rectangles > Rectangle Macros >

POINTSTOPOINT

Previous pageReturn to chapter overviewNext page

描述

 

POINTSTOPOINT宏将POINTS结构的内容复制到POINT结构中。

 

C++ 语法

 

#define POINTSTOPOINT(pt, pts) \

{ (pt).x = (LONG)(SHORT)LOWORD(*(LONG*)&pts); \

(pt).y = (LONG)(SHORT)HIWORD(*(LONG*)&pts); }

 

PowerBASIC 语法

 

MACRO POINTSTOPOINT(pt, pts)

pt.x = pts.x

pt.y = pts.y

END MACRO

 

参数

 

pt

 

[in, out]指定POINT结构以接收POINTS结构的内容。

 

pts

 

[in]指定要复制的POINTS结构。

 

返回值

 

此宏不返回值。

 

引用文件 #INCLUDE Once

 

WinUser.inc