DXNormalDialog.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:2k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1998-1999 DXGuide. All Rights Reserved.
- // File: DXNormalDialog.h
- #ifndef _DXNORMALDIALOG__H
- #define _DXNORMALDIALOG__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "DXDIBDialog.h"
- class CDXSpriteStatic;
- class CDXSpriteButton;
- class CDXNormalDialog : public CDXDIBDialog
- {
- public:
- CDXNormalDialog(void);
- virtual ~CDXNormalDialog();
- public:
- bool Create(LPCTSTR lpszTitle,
- LPCRECT lprcBounds,
- CDDDevice* pDDDevice, LPCTSTR lpszBMPName,
- CPackFileManager* pPackFileManager,
- CDXGUIManager* pGUIManager,
- int nCursorIndex,
- LPCTSTR lpszIconBMPName = NULL,
- bool bCloseButton = false,
- DXDIALOG_TYPE DialogType = DXDIALOG_MODAL);
- virtual void Draw(CDDSurface* pDestSurface);
- public:
- bool LoadFromProfile(CDDDevice* pDDDevice,
- LPCTSTR lpszProfileName,
- CPackFileManager* pPackFileManager,
- CDXGUIManager* pGUIManager,
- int nCursorIndex);
- bool SaveToProfile(LPCTSTR lpszProfileName);
- void SetTitle(LPCTSTR lpszTitle);
- virtual void CalcLayout(void);
- virtual void Move(int nOffsetX, int nOffsetY);
- public:
- CRect m_rcCaption;
- CRect m_rcTitle;
- CDXSpriteStatic* m_pSmallIcon;
- CDXSpriteButton* m_pCloseButton;
- protected:
- static const CString m_strDialogSectionName;
- static const CString m_strIsMenuEntryName;
- static const CString m_strTitleEntryName;
- static const CString m_strLeftEntryName;
- static const CString m_strTopEntryName;
- static const CString m_strRightEntryName;
- static const CString m_strBottomEntryName;
- static const CString m_strBMPEntryName;
- static const CString m_strIconBMPEntryName;
- static const CString m_strIsCloseEntryName;
- static const CString m_strButtonNumEntryName;
- static const CString m_strButtonSectionFmt;
- static const CString m_strIsStaticEntryName;
- static const CString m_strTransEntryName;
- static const CString m_strIDEntryName;
- static const CString m_strSoundNoEntryName;
- protected:
- CString m_strTitle;
- };
- #endif // _DXNORMALDIALOG__H