다음을 통해 공유


IUIAnimationVariable::SetVariableChangeHandler 메서드(uianimation.h)

변수 변경 처리기를 지정합니다. 이 처리기는 애니메이션 변수 값의 변경 내용에 대해 알림을 받습니다.

구문

HRESULT SetVariableChangeHandler(
  [in, optional] IUIAnimationVariableChangeHandler *handler
);

매개 변수

[in, optional] handler

변수 변경 처리기입니다.

지정된 개체는 IUIAnimationVariableChangeHandler 인터페이스를 구현하거나 NULL이어야 합니다.

설명 부분을 참조하세요.

반환 값

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

설명

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

요구 사항

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

추가 정보

IUIAnimationVariable

IUIAnimationVariable::SetVariableIntegerChangeHandler

IUIAnimationVariableChangeHandler