?? gifpic.cpp
字號(hào):
// GifPic.cpp: implementation of the CGifPic class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "GifPic.h"
#include "gif.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CGifPic::CGifPic()
{
pGif = NULL;
}
CGifPic::~CGifPic()
{
if (pGif) delete pGif;
}
BOOL CGifPic::LoadGIF(LPCTSTR FileName)
{
if (pGif) delete pGif;
pGif = new CGIF;
if (pGif->LoadGIF (FileName)) return 1;
delete pGif;
pGif = NULL;
return 0;
}
BOOL CGifPic::GetImageInfo(RECT &Rect, COLORREF &tColor, UINT ImageNo)
{
if (pGif)
{
if (pGif->GetImageInfo (Rect,tColor,ImageNo)) return 1;
}
return 0;
}
BOOL CGifPic::ShowImage(HDC hDC,POINT StartPos,UINT ImageNo )
{
if (pGif)
{
if (pGif->ShowImage (hDC,StartPos,ImageNo)) return 1;
}
return 0;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -