MainFrm.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  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. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. // MainFrm.h : interface of the CMainFrame class
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. #if !defined(AFX_MAINFRM_H__BA36CCDC_B39E_4972_B9DC_A531CDEF5E4B__INCLUDED_)
  22. #define AFX_MAINFRM_H__BA36CCDC_B39E_4972_B9DC_A531CDEF5E4B__INCLUDED_
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. #include "wwstring.h"
  27. #include "vector.h"
  28. CString Strip_Filename_From_Path (LPCTSTR path);
  29. class CMainFrame : public CFrameWnd
  30. {
  31. protected: // create from serialization only
  32. CMainFrame();
  33. DECLARE_DYNCREATE(CMainFrame)
  34. // Attributes
  35. public:
  36. // Operations
  37. public:
  38. // Overrides
  39. // ClassWizard generated virtual function overrides
  40. //{{AFX_VIRTUAL(CMainFrame)
  41. public:
  42. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  43. protected:
  44. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. public:
  48. virtual ~CMainFrame();
  49. #ifdef _DEBUG
  50. virtual void AssertValid() const;
  51. virtual void Dump(CDumpContext& dc) const;
  52. #endif
  53. protected: // control bar embedded members
  54. CStatusBar m_wndStatusBar;
  55. CToolBar m_wndToolBar;
  56. // Generated message map functions
  57. protected:
  58. //{{AFX_MSG(CMainFrame)
  59. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  60. afx_msg void OnCombineDuplicates();
  61. afx_msg void OnRemoveAVAssets();
  62. afx_msg void OnMakeMixPatch();
  63. afx_msg void OnDropFiles(HDROP hDropInfo);
  64. afx_msg void OnCreateMixFile();
  65. afx_msg void OnExportFiles();
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. public:
  69. ///////////////////////////////////////////////////////////////////
  70. // Public methods
  71. ///////////////////////////////////////////////////////////////////
  72. void Add_To_Mix_File (const char *mix_filename, const char *filename);
  73. void Add_To_Mix_File (const char *mix_filename, DynamicVectorClass<StringClass> &new_file_list);
  74. };
  75. /////////////////////////////////////////////////////////////////////////////
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_MAINFRM_H__BA36CCDC_B39E_4972_B9DC_A531CDEF5E4B__INCLUDED_)