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

DirextX编程

开发平台:

Visual C++

  1. // Copyright (C) 1998-1999 DXGuide.  All Rights Reserved.
  2. // File: DXSpriteButton.h
  3. #ifndef _DXSPRITEBUTTON__H
  4. #define _DXSPRITEBUTTON__H
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. #include "DXRectButton.h"
  9. class CPackFileManager;
  10. class CDDDIBSurface;
  11. class CDXSprite;
  12. class CDDDevice;
  13. class CDXSpriteButton : public CDXRectButton
  14. {
  15. public:
  16. CDXSpriteButton(void);
  17. virtual ~CDXSpriteButton();
  18. public:
  19. bool Create(LPCRECT  lprcBounds,
  20. CDXDialog*  pParent,
  21. CDSBuffer*  pSoundFocused,
  22. CDSBuffer*  pSoundPressDown,
  23. CDDDevice*  pDDDevice, LPCTSTR  lpszBMPName,
  24. CPackFileManager*  pPackFileManager = NULL,
  25. bool bTrans = false,
  26. int  nHoriBlocks = DXBUTTON_NUMBER_STATE,
  27. int  nID = -1);
  28. public:
  29. virtual bool IsPointIn(int  nX, int  nY);
  30. virtual void Draw(CDDSurface*  pDestSurface);
  31. protected:
  32. CDXSprite* m_pSprite;
  33. };
  34. #endif // _DXSPRITEBUTTON__H