WndDisplayTexture.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_WNDDISPLAYTEXTURE_H__D9AF4DBF_9E24_4F24_AC82_3A9440AFD256__INCLUDED_)
  13. #define AFX_WNDDISPLAYTEXTURE_H__D9AF4DBF_9E24_4F24_AC82_3A9440AFD256__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // WndDisplayTexture.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CWndDisplayTexture window
  21. class CWndDisplayTexture : public CWnd
  22. {
  23. // Construction
  24. public:
  25. CWndDisplayTexture();
  26. // Attributes
  27. public:
  28. CTextureData *m_ptd;
  29. CDrawPort *m_pDrawPort;
  30. CViewPort *m_pViewPort;
  31. CTString m_strText1;
  32. CTString m_strText2;
  33. PIXaabbox2D m_boxTexture;
  34. PIXaabbox2D m_boxText1;
  35. PIXaabbox2D m_boxText2;
  36. // Operations
  37. public:
  38. // Overrides
  39. // ClassWizard generated virtual function overrides
  40. //{{AFX_VIRTUAL(CWndDisplayTexture)
  41. public:
  42. virtual BOOL PreTranslateMessage(MSG* pMsg);
  43. //}}AFX_VIRTUAL
  44. // Implementation
  45. public:
  46. virtual ~CWndDisplayTexture();
  47. BOOL Initialize(PIX pixX, PIX pixY, CTextureData *ptd, CTString strText1="", CTString strText2="", BOOL bDown=FALSE);
  48. // Generated message map functions
  49. protected:
  50. //{{AFX_MSG(CWndDisplayTexture)
  51. afx_msg void OnPaint();
  52. afx_msg void OnKillFocus(CWnd* pNewWnd);
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. /////////////////////////////////////////////////////////////////////////////
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_WNDDISPLAYTEXTURE_H__D9AF4DBF_9E24_4F24_AC82_3A9440AFD256__INCLUDED_)