TexEdit.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. #if !defined(AFX_TEXEDIT_H__913F6812_99CD_11D1_B568_00AA00A410FC__INCLUDED_)
  19. #define AFX_TEXEDIT_H__913F6812_99CD_11D1_B568_00AA00A410FC__INCLUDED_
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif // _MSC_VER >= 1000
  23. // TexEdit.h : header file
  24. //
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CTexEdit window
  27. class CTexWnd;
  28. class CTexEdit : public CEdit
  29. {
  30. // Construction
  31. public:
  32. CTexEdit();
  33. // Attributes
  34. public:
  35. protected:
  36. CTexWnd* m_pTexWnd;
  37. CFont m_Font;
  38. // Operations
  39. public:
  40. void SetTexWnd(CTexWnd* pTex) {m_pTexWnd = pTex;};
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CTexEdit)
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. public:
  47. virtual ~CTexEdit();
  48. // Generated message map functions
  49. protected:
  50. //{{AFX_MSG(CTexEdit)
  51. afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
  52. afx_msg void OnChange();
  53. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. };
  57. /////////////////////////////////////////////////////////////////////////////
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_TEXEDIT_H__913F6812_99CD_11D1_B568_00AA00A410FC__INCLUDED_)