MFC Dialogbasierend unter MS Visual 6.0 C++ Steuerelemente tutorial gesucht

In der Create-Methode kann man die Größe des Control festlegen

Code:
CAnimateCtrl::CreateSee Also
CAnimateCtrl Overview | Class Members | Hierarchy Chart | CAnimateCtrl::CAnimateCtrl | CAnimateCtrl::Open | CAnimateCtrl::Play | CAnimateCtrl::Seek
Creates an animation control and attaches it to a CAnimateCtrl object.

virtual BOOL Create(
   DWORD dwStyle,
   const RECT& rect,
   CWnd* pParentWnd,
   UINT nID 
);
Parameters
dwStyle 
Specifies the animation control's style. Apply any combination of the windows styles described in the Remarks section below and the animation control styles described in Animation Control Styles in the Platform SDK. 
rect 
Specifies the animation control's position and size. It can be either a CRect object or a RECT structure. 
pParentWnd 
Specifies the animation control's parent window, usually a CDialog. It must not be NULL. 
nID 
Specifies the animation control's ID. 
Return Value
Nonzero if successful; otherwise zero.

Remarks
You construct a CAnimateCtrl in two steps. First, call the constructor, and then call Create, which creates the animation control and attaches it to the CAnimateCtrl object.

Apply the following window styles to an animation control. 

WS_CHILD   Always 
WS_VISIBLE   Usually 
WS_DISABLED   Rarely 
If you want to use extended windows styles with your animation control, call CreateEx instead of Create.

In addition to the window styles listed above, you may want to apply one or more of the animation control styles to an animation control. See the Platform SDK for more information on animation control styles.

Example
See the example for CAnimateCtrl::CAnimateCtrl.

See Also
CAnimateCtrl Overview | Class Members | Hierarchy Chart | CAnimateCtrl::CAnimateCtrl | CAnimateCtrl::Open | CAnimateCtrl::Play | CAnimateCtrl::Seek

Und die Parameter in der Play-Funktion haben nachfolgende Funktion

Code:
CAnimateCtrl::PlaySee Also
CAnimateCtrl Overview | Class Members | Hierarchy Chart | CAnimateCtrl::Open | CAnimateCtrl::Stop | CAnimateCtrl::Seek | CAnimateCtrl::Create
Call this function to play an AVI clip in an animation control.

BOOL Play(
   UINT nFrom,
   UINT nTo,
   UINT nRep 
);
Parameters
nFrom 
Zero-based index of the frame where playing begins. Value must be less than 65,536. A value of 0 means begin with the first frame in the AVI clip. 
nTo 
Zero-based index of the frame where playing ends. Value must be less than 65,536. A value of – 1 means end with the last frame in the AVI clip. 
nRep 
Number of times to replay the AVI clip. A value of – 1 means replay the file indefinitely. 
Return Value
Nonzero if successful; otherwise zero.

Remarks
The animation control will play the clip in the background while your thread continues executing. If the animation control has ACS_TRANSPARENT style, the AVI clip will be played using a transparent background rather than the background color specified in the animation clip.

Example
See the example for CAnimateCtrl::CAnimateCtrl.

See Also
CAnimateCtrl Overview | Class Members | Hierarchy Chart | CAnimateCtrl::Open | CAnimateCtrl::Stop | CAnimateCtrl::Seek | CAnimateCtrl::Create

Mfg

langer
 
Zurück