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