hsanimationmemdc.cpp

来自「漂亮菜单」· C++ 代码 · 共 36 行

CPP
36
字号
// HSAnimationMemDC.cpp: implementation of the CHSAnimationMemDC class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "CHSMenu.h"
#include "HSGraphics.h"
#include "HSAnimationMemDC.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CHSAnimationMemDC::CHSAnimationMemDC( CDC *pDC, CRect *prect ) : CHSMemDC( pDC, prect )
{
}

CHSAnimationMemDC::CHSAnimationMemDC( HDC hDC, RECT *prect ) : CHSMemDC( hDC, prect )
{
}

CHSAnimationMemDC::~CHSAnimationMemDC()
{
}

void CHSAnimationMemDC::Animation( int nType, int nStep, int nTimeDelay )
{
	DrawAnimation( &m_rect, m_pDC->GetSafeHdc(), this->GetSafeHdc(), nType, nStep, nTimeDelay );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?