DXSpriteButton.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1998-1999 DXGuide. All Rights Reserved.
- // File: DXSpriteButton.h
- #ifndef _DXSPRITEBUTTON__H
- #define _DXSPRITEBUTTON__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "DXRectButton.h"
- class CPackFileManager;
- class CDDDIBSurface;
- class CDXSprite;
- class CDDDevice;
- class CDXSpriteButton : public CDXRectButton
- {
- public:
- CDXSpriteButton(void);
- virtual ~CDXSpriteButton();
- public:
- bool Create(LPCRECT lprcBounds,
- CDXDialog* pParent,
- CDSBuffer* pSoundFocused,
- CDSBuffer* pSoundPressDown,
- CDDDevice* pDDDevice, LPCTSTR lpszBMPName,
- CPackFileManager* pPackFileManager = NULL,
- bool bTrans = false,
- int nHoriBlocks = DXBUTTON_NUMBER_STATE,
- int nID = -1);
- public:
- virtual bool IsPointIn(int nX, int nY);
- virtual void Draw(CDDSurface* pDestSurface);
- protected:
- CDXSprite* m_pSprite;
- };
- #endif // _DXSPRITEBUTTON__H