CAnimationManagerEventHandler, classe
Implémente un rappel, qui est appelé par l'API d'animation lorsque l'état d'un gestionnaire d'animation est modifié.
Syntaxe
class CAnimationManagerEventHandler : public CUIAnimationManagerEventHandlerBase<CAnimationManagerEventHandler>;
Membres
Constructeurs publics
Nom | Description |
---|---|
CAnimationManagerEventHandler ::CAnimationManagerEventHandler | Construit un objet CAnimationManagerEventHandler . |
Méthodes publiques
Nom | Description |
---|---|
CAnimationManagerEventHandler ::CreateInstance | Crée une instance d’objet CAnimationManagerEventHandler . |
CAnimationManagerEventHandler ::OnManagerStatusChanged | Appelé lorsqu’un état du gestionnaire d’animations a changé. (Substitue CUIAnimationManagerEventHandlerBase::OnManagerStatusChanged .) |
CAnimationManagerEventHandler ::SetAnimationController | Stocke un pointeur vers le contrôleur d’animation pour router les événements. |
Notes
Ce gestionnaire d’événements est créé et transmis à la méthode IUIAnimationManager ::SetManagerEventHandler, lorsque vous appelez CAnimationController ::EnableAnimationManagerEvent.
Hiérarchie d'héritage
CUIAnimationCallbackBase
CUIAnimationManagerEventHandlerBase
CAnimationManagerEventHandler
Spécifications
En-tête : afxanimationcontroller.h
CAnimationManagerEventHandler ::CAnimationManagerEventHandler
Visual Studio 2010 SP1 est requis
Construit un objet CAnimationManagerEventHandler.
CAnimationManagerEventHandler();
CAnimationManagerEventHandler ::CreateInstance
Visual Studio 2010 SP1 est requis
Crée une instance de l’objet CAnimationManagerEventHandler.
static COM_DECLSPEC_NOTHROW HRESULT CreateInstance(
CAnimationController* pAnimationController,
IUIAnimationManagerEventHandler** ppManagerEventHandler);
Paramètres
pAnimationController
Pointeur vers le contrôleur d’animation, qui recevra des événements.
ppManagerEventHandler
Sortie. Si la méthode réussit, elle contient un pointeur vers un objet COM qui gère les mises à jour d’état vers un gestionnaire d’animations.
Valeur de retour
Si la méthode réussit, retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.
CAnimationManagerEventHandler ::OnManagerStatusChanged
Visual Studio 2010 SP1 est requis
Appelé lorsqu’un état du gestionnaire d’animations a changé.
IFACEMETHOD(OnManagerStatusChanged)(
UI_ANIMATION_MANAGER_STATUS newStatus,
UI_ANIMATION_MANAGER_STATUS previousStatus);
Paramètres
newStatus
Nouvel état.
previousStatus
État précédent.
Valeur de retour
L’implémentation actuelle retourne toujours S_OK ;
CAnimationManagerEventHandler ::SetAnimationController
Visual Studio 2010 SP1 est requis
Stocke un pointeur vers le contrôleur d’animation pour router les événements.
void SetAnimationController(CAnimationController* pAnimationController);
Paramètres
pAnimationController
Pointeur vers le contrôleur d’animation, qui recevra des événements.
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour