构造 CAnimationRect 对象。
CAnimationRect();
CAnimationRect(
const CRect& rect,
UINT32 nGroupID,
UINT32 nObjectID = (UINT32)-1,
DWORD dwUserData = 0
);
CAnimationRect(
const CPoint& pt,
const CSize& sz,
UINT32 nGroupID,
UINT32 nObjectID = (UINT32)-1,
DWORD dwUserData = 0
);
CAnimationRect(
int nLeft,
int nTop,
int nRight,
int nBottom,
UINT32 nGroupID,
UINT32 nObjectID = (UINT32)-1,
DWORD dwUserData = 0
);
参数
rect
指定默认矩形。nGroupID
指定组 ID。nObjectID
指定对象 ID。dwUserData
指定用户定义的数据。pt
左上角的坐标。sz
矩形的大小。nLeft
指定左边边界的坐标。nTop
指定顶边边界的坐标。nRight
指定右边边界的坐标。nBottom
指定底边边界的坐标。
备注
使用默认值构造对象,左边、顶边、右边和底边、对象 ID 和组 ID 都将被设置为 0。 稍后可以在运行时使用 SetDefaultValue 和 SetID 对其进行更改。
要求
标头: afxanimationcontroller.h