MixViewerView.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. // MixViewerView.h : interface of the CMixViewerView class
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. #if !defined(AFX_MIXVIEWERVIEW_H__562AE398_6B91_4DA8_B325_73D4EC73EB36__INCLUDED_)
  22. #define AFX_MIXVIEWERVIEW_H__562AE398_6B91_4DA8_B325_73D4EC73EB36__INCLUDED_
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. #include "resource.h"
  27. #include "vector.h"
  28. #include "wwstring.h"
  29. //////////////////////////////////////////////////////////////////////////////////
  30. //
  31. // CMixViewerView
  32. //
  33. //////////////////////////////////////////////////////////////////////////////////
  34. class CMixViewerView : public CListView
  35. {
  36. protected: // create from serialization only
  37. CMixViewerView();
  38. DECLARE_DYNCREATE(CMixViewerView)
  39. // Attributes
  40. public:
  41. CMixViewerDoc* GetDocument();
  42. // Operations
  43. public:
  44. // Overrides
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(CMixViewerView)
  47. public:
  48. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  49. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  50. protected:
  51. virtual void OnInitialUpdate(); // called first time after construct
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. public:
  55. virtual ~CMixViewerView();
  56. #ifdef _DEBUG
  57. virtual void AssertValid() const;
  58. virtual void Dump(CDumpContext& dc) const;
  59. #endif
  60. protected:
  61. // Generated message map functions
  62. protected:
  63. //{{AFX_MSG(CMixViewerView)
  64. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  65. afx_msg void OnDeleteitem(NMHDR* pNMHDR, LRESULT* pResult);
  66. afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. public:
  70. ///////////////////////////////////////////////////////////////////////
  71. // Public methods
  72. ///////////////////////////////////////////////////////////////////////
  73. void Reload (const char *filename);
  74. void Reset (void);
  75. private:
  76. ///////////////////////////////////////////////////////////////////////
  77. // Private member data
  78. ///////////////////////////////////////////////////////////////////////
  79. DynamicVectorClass<StringClass> FilenameList;
  80. StringClass CurrentFilename;
  81. };
  82. #ifndef _DEBUG // debug version in MixViewerView.cpp
  83. inline CMixViewerDoc* CMixViewerView::GetDocument()
  84. { return (CMixViewerDoc*)m_pDocument; }
  85. #endif
  86. /////////////////////////////////////////////////////////////////////////////
  87. //{{AFX_INSERT_LOCATION}}
  88. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  89. #endif // !defined(AFX_MIXVIEWERVIEW_H__562AE398_6B91_4DA8_B325_73D4EC73EB36__INCLUDED_)