共用方式為


CAnimationRect::CAnimationRect

建構 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
    指定群組識別碼。

  • nObjectID
    指定物件識別碼。

  • dwUserData
    指定使用者定義資料。

  • pt
    左上角的座標。

  • sz
    矩形的大小。

  • nLeft
    指定左界限的座標。

  • nTop
    指定上界限的座標。

  • nRight
    指定右界限的座標。

  • nBottom
    指定下界限的座標。

備註

物件是以左、上、右及下方、物件識別碼與群組識別碼的預設值所建構,這些值都將設為 0。 這些都可以稍後在執行階段使用 SetDefaultValue 和 SetID 來變更。

需求

**標頭檔:**afxanimationcontroller.h

請參閱

參考

CAnimationRect 類別