ProgressDlg.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. FinalSun/FinalAlert 2 Mission Editor
  3. Copyright (C) 1999-2024 Electronic Arts, Inc.
  4. Authored by Matthias Wagner
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. */
  16. #if !defined(AFX_PROGRESSDLG_H__6FA29A01_EA1F_11D4_9C88_F09F67B34649__INCLUDED_)
  17. #define AFX_PROGRESSDLG_H__6FA29A01_EA1F_11D4_9C88_F09F67B34649__INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. // ProgressDlg.h : Header-Datei
  22. //
  23. /////////////////////////////////////////////////////////////////////////////
  24. // Dialogfeld CProgressDlg
  25. class CProgressDlg : public CDialog
  26. {
  27. // Konstruktion
  28. public:
  29. BOOL m_bCancel;
  30. void SetPosition(int nPos);
  31. void SetRange(int min, int max);
  32. CProgressDlg(CString lpDescription, CWnd* pParent = NULL); // Standardkonstruktor
  33. // Dialogfelddaten
  34. //{{AFX_DATA(CProgressDlg)
  35. enum { IDD = IDD_PROGRESS };
  36. CProgressCtrl m_Progress;
  37. CString m_Label;
  38. CString m_ProgLabel;
  39. //}}AFX_DATA
  40. // Überschreibungen
  41. // Vom Klassen-Assistenten generierte virtuelle Funktionsüberschreibungen
  42. //{{AFX_VIRTUAL(CProgressDlg)
  43. protected:
  44. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV-Unterstützung
  45. virtual void PostNcDestroy();
  46. //}}AFX_VIRTUAL
  47. // Implementierung
  48. protected:
  49. // Generierte Nachrichtenzuordnungsfunktionen
  50. //{{AFX_MSG(CProgressDlg)
  51. virtual void OnCancel();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. };
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
  57. #endif // AFX_PROGRESSDLG_H__6FA29A01_EA1F_11D4_9C88_F09F67B34649__INCLUDED_