如何把一个POINT转化为lParam参数

清泛原创
MAKELPARAM(pt.x, pt.y);

反之:

CPoint point(lParam);

里面的实现是:
CPoint(_In_ LPARAM dwPoint) throw();
...

ATLTYPES_INLINE CPoint::CPoint(_In_ LPARAM dwPoint) throw()
{
x = (short)GET_X_LPARAM(dwPoint);
y = (short)GET_Y_LPARAM(dwPoint);
}

CPoint POINT lParam

分享到:
评论加载中,请稍后...
创APP如搭积木 - 创意无限,梦想即时!
回到顶部