Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

  1. #if !defined(CTRL__Animation_inl__INCLUDED)
  2. #define CTRL__Animation_inl__INCLUDED
  3. #pragma once
  4. #if ENABLE_MSGTABLE_API
  5. #define DEBUG_TRACECREATION 0 // Trace Creation and destruction of animations
  6. /***************************************************************************\
  7. *****************************************************************************
  8. *
  9. * class DuAnimation
  10. *
  11. *****************************************************************************
  12. \***************************************************************************/
  13. //------------------------------------------------------------------------------
  14. inline
  15. DuAnimation::DuAnimation()
  16. {
  17. m_cRef = 1;
  18. m_time = Animation::tComplete; // By default, completes normally
  19. #if DEBUG_TRACECREATION
  20. Trace("START Animation 0x%p @ %d\n", this, GetTickCount());
  21. #endif // DEBUG_TRACECREATION
  22. }
  23. //------------------------------------------------------------------------------
  24. inline void
  25. DuAnimation::AddRef()
  26. {
  27. ++m_cRef;
  28. }
  29. //------------------------------------------------------------------------------
  30. inline void
  31. DuAnimation::Release()
  32. {
  33. if (--m_cRef == 0)
  34. Delete();
  35. }
  36. #endif // ENABLE_MSGTABLE_API
  37. #endif // CTRL__Animation_inl__INCLUDED