1
0

CloseMainDialog.h 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * CloseMainDialog.h
  3. * -----------------
  4. * Purpose: Dialog showing a list of unsaved documents, with the ability to choose which documents should be saved or not.
  5. * Notes : (currently none)
  6. * Authors: OpenMPT Devs
  7. * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
  8. */
  9. #pragma once
  10. #include "openmpt/all/BuildSettings.hpp"
  11. #include "InputHandler.h"
  12. #include "ResizableDialog.h"
  13. OPENMPT_NAMESPACE_BEGIN
  14. class CloseMainDialog: public ResizableDialog
  15. {
  16. protected:
  17. CListBox m_List;
  18. CPoint m_minSize;
  19. BypassInputHandler m_bih;
  20. static CString FormatTitle(const CModDoc *modDoc, bool fullPath);
  21. public:
  22. CloseMainDialog();
  23. protected:
  24. void DoDataExchange(CDataExchange* pDX) override;
  25. BOOL OnInitDialog() override;
  26. void OnOK() override;
  27. afx_msg void OnSaveAll();
  28. afx_msg void OnSaveNone();
  29. afx_msg void OnSwitchFullPaths();
  30. DECLARE_MESSAGE_MAP()
  31. };
  32. OPENMPT_NAMESPACE_END