?? animctrl.cpp
字號:
// AnimCtrl.cpp: implementation of the CAnimCtrl class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "AnimCtrl.h"
#include <list>
//=======================================================================================
// 動畫控制類的具體實現
//=======================================================================================
CShowList g_AnimList;//存放所有動畫的鏈表
//=========================================================================================
void CAnimCtrl::New(CBmp24*p,int x,int y)
{
m_pBmp=p;
m_x=x;
m_y=y;
m_Idx=0;
m_EffectFlag=0;
m_Depth=0;//默認為零
New();//一定別忘了,添加到g_AnimList
}
void CAnimCtrl::New(CBmp24*p,int x,int y,int depth)
{
m_pBmp=p;
m_x=x;
m_y=y;
m_Idx=0;
m_EffectFlag=0;
m_Depth=depth;
New();//一定別忘了,添加到g_AnimList
}
void CAnimCtrl::SetDepth(int depth)
{
g_AnimList.Remove(this);
m_Depth=depth;
g_AnimList.Add(this);
}
//======================================================================================
CAnimCtrl::CAnimCtrl()
{
m_x=m_y=0;
m_Idx=0;
m_EffectFlag=0;
m_pBmp=0;
m_Depth=0;
}
CAnimCtrl::~CAnimCtrl(){}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -