DXSpriteStatic.h
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:

DirextX编程

开发平台:

Visual C++

  1. // Copyright (C) 1998-1999 DXGuide.  All Rights Reserved.
  2. // File: DXSpriteStatic.h
  3. #ifndef _DXSPRITESTATIC__H
  4. #define _DXSPRITESTATIC__H
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. #include "DXRectButton.h"
  9. #include "DDDIBSurface.h"
  10. class CPackFileManager;
  11. class CDDDevice;
  12. class CDXSpriteStatic : public CDXRectButton
  13. {
  14. public:
  15. CDXSpriteStatic(void);
  16. virtual ~CDXSpriteStatic();
  17. public:
  18. bool Create(LPCRECT  lprcBounds,
  19. CDXDialog*  pParent,
  20. CDDDevice*  pDDDevice, LPCTSTR  lpszBMPName,
  21. CPackFileManager*  pPackFileManager = NULL,
  22. bool  bTrans = false,
  23. CDIB::DIBFileType  fileType = CDIB::FT_BITMAP);
  24. public:
  25. virtual void Draw(CDDSurface*  pDestSurface);
  26. virtual void SetDisable(bool  bDisable);
  27. protected:
  28. CDDDIBSurface* m_pDIBSurface;
  29. };
  30. #endif // _DXSPRITESTATIC__H