InputBox.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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_INPUTBOX_H__90BA0F00_6AD4_11D3_99E1_FA6209BA1804__INCLUDED_)
  17. #define AFX_INPUTBOX_H__90BA0F00_6AD4_11D3_99E1_FA6209BA1804__INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. // InputBox.h : Header-Datei
  22. //
  23. #include "resource.h"
  24. /////////////////////////////////////////////////////////////////////////////
  25. // Dialogfeld CInputBox
  26. CString InputBox(const char* Sentence, const char* Caption);
  27. class CInputBox : public CDialog
  28. {
  29. // Konstruktion
  30. public:
  31. void SetSentence(CString Sentence);
  32. void SetCaption(CString Caption);
  33. CInputBox(CWnd* pParent = NULL); // Standardkonstruktor
  34. // Dialogfelddaten
  35. //{{AFX_DATA(CInputBox)
  36. enum { IDD = IDD_INPUTBOX };
  37. //}}AFX_DATA
  38. // Überschreibungen
  39. // Vom Klassen-Assistenten generierte virtuelle Funktionsüberschreibungen
  40. //{{AFX_VIRTUAL(CInputBox)
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV-Unterstützung
  43. //}}AFX_VIRTUAL
  44. // Implementierung
  45. protected:
  46. // Generierte Nachrichtenzuordnungsfunktionen
  47. //{{AFX_MSG(CInputBox)
  48. virtual void OnOK();
  49. virtual void OnCancel();
  50. virtual BOOL OnInitDialog();
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. private:
  54. CString m_Text;
  55. CString m_Caption;
  56. };
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
  59. #endif // AFX_INPUTBOX_H__90BA0F00_6AD4_11D3_99E1_FA6209BA1804__INCLUDED_