共用方式為


CAnimationStoryboardEventHandler::CreateInstance

Creates an instance of CAnimationStoryboardEventHandler callback.

static COM_DECLSPEC_NOTHROW HRESULT CreateInstance(
   CAnimationController* pAnimationController,
   IUIAnimationStoryboardEventHandler **ppHandler
);

Parameters

  • pAnimationController
    A pointer to animation controller, which will receive events.

  • ppHandler

Return Value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header: afxanimationcontroller.h

See Also

Reference

CAnimationStoryboardEventHandler Class