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

#if !defined(CTRL__Animation_inl__INCLUDED)
#define CTRL__Animation_inl__INCLUDED
#pragma once
#if ENABLE_MSGTABLE_API
#define DEBUG_TRACECREATION 0 // Trace Creation and destruction of animations
/***************************************************************************\
*****************************************************************************
*
* class DuAnimation
*
*****************************************************************************
\***************************************************************************/
//------------------------------------------------------------------------------
inline
DuAnimation::DuAnimation()
{
m_cRef = 1;
m_time = Animation::tComplete; // By default, completes normally
#if DEBUG_TRACECREATION
Trace("START Animation 0x%p @ %d\n", this, GetTickCount());
#endif // DEBUG_TRACECREATION
}
//------------------------------------------------------------------------------
inline void
DuAnimation::AddRef()
{
++m_cRef;
}
//------------------------------------------------------------------------------
inline void
DuAnimation::Release()
{
if (--m_cRef == 0)
Delete();
}
#endif // ENABLE_MSGTABLE_API
#endif // CTRL__Animation_inl__INCLUDED