IUIAnimationStoryboard::SetStoryboardEventHandler 메서드(uianimation.h)

스토리보드 이벤트에 대한 처리기를 지정합니다.

구문

HRESULT SetStoryboardEventHandler(
  [in, optional] IUIAnimationStoryboardEventHandler *handler
);

매개 변수

[in, optional] handler

storyboard 상태 및 업데이트 이벤트가 발생할 때마다 호출할 처리기입니다.

지정된 개체는 IUIAnimationStoryboardEventHandler 인터페이스를 구현하거나 NULL이어야 합니다. 설명 부분을 참조하세요.

반환 값

메서드가 성공하면 S_OK가 반환되고, 그러지 않으면 HRESULT 오류 코드를 반환합니다. 오류 코드 목록은 Windows 애니메이션 오류 코드를 참조하세요.

설명

처리기 매개 변수에 대해 NULL을 전달하면 Windows 애니메이션이 이전에 전달한 처리기 개체에 대한 참조를 해제합니다. 이 기술은 IUIAnimationManager::Shutdown 메서드를 호출하지 않고도 참조 주기를 중단하는 데 필수적일 수 있습니다.

요구 사항

   
지원되는 최소 클라이언트 Windows Vista용 Windows 7, Windows Vista 및 플랫폼 업데이트 [데스크톱 앱 | UWP 앱]
지원되는 최소 서버 지원되는 버전 없음
대상 플랫폼 Windows
헤더 uianimation.h
DLL UIAnimation.dll

추가 정보

IUIAnimationStoryboard

IUIAnimationStoryboardEventHandler