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

DirextX编程

开发平台:

Visual C++

  1. // Copyright (C) 1998-1999 DXGuide.  All Rights Reserved.
  2. // File: DXNormalDialog.h
  3. #ifndef _DXNORMALDIALOG__H
  4. #define _DXNORMALDIALOG__H
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. #include "DXDIBDialog.h"
  9. class CDXSpriteStatic;
  10. class CDXSpriteButton;
  11. class CDXNormalDialog : public CDXDIBDialog
  12. {
  13. public:
  14. CDXNormalDialog(void);
  15. virtual ~CDXNormalDialog();
  16. public:
  17. bool Create(LPCTSTR  lpszTitle,
  18. LPCRECT  lprcBounds,
  19. CDDDevice*  pDDDevice, LPCTSTR  lpszBMPName,
  20. CPackFileManager*  pPackFileManager,
  21. CDXGUIManager*  pGUIManager,
  22. int  nCursorIndex,
  23. LPCTSTR  lpszIconBMPName = NULL,
  24. bool  bCloseButton = false,
  25. DXDIALOG_TYPE  DialogType = DXDIALOG_MODAL);
  26. virtual void Draw(CDDSurface*  pDestSurface);
  27. public:
  28. bool LoadFromProfile(CDDDevice*  pDDDevice,
  29. LPCTSTR  lpszProfileName,
  30. CPackFileManager*  pPackFileManager,
  31. CDXGUIManager*  pGUIManager,
  32. int  nCursorIndex);
  33. bool SaveToProfile(LPCTSTR  lpszProfileName);
  34. void SetTitle(LPCTSTR  lpszTitle);
  35. virtual void CalcLayout(void);
  36. virtual void Move(int  nOffsetX, int  nOffsetY);
  37. public:
  38. CRect m_rcCaption;
  39. CRect m_rcTitle;
  40. CDXSpriteStatic* m_pSmallIcon;
  41. CDXSpriteButton* m_pCloseButton;
  42. protected:
  43. static const CString m_strDialogSectionName;
  44. static const CString m_strIsMenuEntryName;
  45. static const CString m_strTitleEntryName;
  46. static const CString m_strLeftEntryName;
  47. static const CString m_strTopEntryName;
  48. static const CString m_strRightEntryName;
  49. static const CString m_strBottomEntryName;
  50. static const CString m_strBMPEntryName;
  51. static const CString m_strIconBMPEntryName;
  52. static const CString m_strIsCloseEntryName;
  53. static const CString m_strButtonNumEntryName;
  54. static const CString m_strButtonSectionFmt;
  55. static const CString m_strIsStaticEntryName;
  56. static const CString m_strTransEntryName;
  57. static const CString m_strIDEntryName;
  58. static const CString m_strSoundNoEntryName;
  59. protected:
  60. CString m_strTitle;
  61. };
  62. #endif // _DXNORMALDIALOG__H