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

DirextX编程

开发平台:

Visual C++

  1. #ifndef _DXSYSINFODIALOG__H
  2. #define _DXSYSINFODIALOG__H
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. #include "DXNormalDialog.h"
  7. #include "SystemInformation.h"
  8. class CDDLayer;
  9. class CDDTextSurface;
  10. class CDXSysInfoDialog : public CDXNormalDialog
  11. {
  12. public:
  13. enum SYSINFODLG_ITEM
  14. {
  15. SYSINFODLG_OSTYPE = 0,
  16. SYSINFODLG_NUMBEROFPROCESSORS,
  17. SYSINFODLG_CPUTYPE,
  18. SYSINFODLG_CPUFREQ,
  19. SYSINFODLG_CPUCACHEINFO,
  20. SYSINFODLG_MMX,
  21. SYSINFODLG_TOTALMEMORY,
  22. SYSINFODLG_AVAILMEMORY,
  23. SYSINFODLG_VIDEODESC,
  24. SYSINFODLG_MONITORFREQUENCY,
  25. /* SYSINFODLG_LOCALIPADDRESS,*/
  26. SYSINFODLG_NUM_ITEMS
  27. };
  28. public:
  29. CDXSysInfoDialog(void);
  30. virtual ~CDXSysInfoDialog();
  31. public:
  32. bool Create(LPCTSTR  lpszBackBMPName,
  33. CDDDevice*  pDDDevice,
  34. LPCTSTR  lpszProfileName,
  35. CPackFileManager*  pPackFileManager,
  36. CDXGUIManager*  pGUIManager,
  37. int  nCursorIndex);
  38. public:
  39. virtual bool OnButtonAction(int  nID);
  40. virtual void Draw(CDDSurface*  pDestSurface);
  41. virtual void Move(int  nOffsetX, int  nOffsetY);
  42. public:
  43. CDDLayer* m_pBackLayer;
  44. protected:
  45. CDDTextSurface* m_apSysInfoItem[SYSINFODLG_NUM_ITEMS];
  46. };
  47. #endif // _DXSYSINFODIALOG__H