Partager via


CMFCPopupMenu::SetAnimationSpeed

Sets the animation speed for pop-up menus.

static void SetAnimationSpeed(
   UINT nElapse 
);

Parameters

  • [in] nElapse
    The new animation speed, in milliseconds.

Remarks

The animation speed is a global value and affects all the pop-up menus in the application. This value specifies how long it takes for the animation for a pop-up menu to finish.

By default, this parameter is set to 30 milliseconds. The range of valid values for nElapse is from 0 to 200.

Requirements

Header: afxpopupmenu.h

See Also

Reference

CMFCPopupMenu Class

Hierarchy Chart

CMFCPopupMenu::GetAnimationSpeed