ViewTexture.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #if !defined(AFX_VIEWTEXTURE_H__00278257_91BC_11D2_8478_004095812ACC__INCLUDED_)
  13. #define AFX_VIEWTEXTURE_H__00278257_91BC_11D2_8478_004095812ACC__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // ViewTexture.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CViewTexture window
  21. class CViewTexture : public CWnd
  22. {
  23. // Construction
  24. public:
  25. CViewTexture();
  26. // Attributes
  27. public:
  28. CTString m_strTexture;
  29. COleDataSource m_DataSource;
  30. CViewPort *m_pViewPort;
  31. CDrawPort *m_pDrawPort;
  32. // Operations
  33. public:
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CViewTexture)
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. public:
  40. virtual ~CViewTexture();
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CViewTexture)
  44. afx_msg void OnPaint();
  45. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  46. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  47. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  48. afx_msg void OnRecreateTexture();
  49. afx_msg void OnDestroy();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. /////////////////////////////////////////////////////////////////////////////
  54. //{{AFX_INSERT_LOCATION}}
  55. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  56. #endif // !defined(AFX_VIEWTEXTURE_H__00278257_91BC_11D2_8478_004095812ACC__INCLUDED_)