1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
8 // This program is free software; you can redistribute it and/or modify it
9 // under the terms of the GNU General Public License as published by the Free
10 // Software Foundation; either version 2 of the License, or (at your option)
13 // This program is distributed in the hope that it will be useful, but WITHOUT
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc.,
20 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
25 //===========================================================================
26 //#####DESCRIPTIONBEGIN####
33 // Description: Interface of the masked edit control used by the control view for
41 //####DESCRIPTIONEND####
43 //===========================================================================
44 #if !defined(AFX_STRINGEDIT_H__8F19DC24_06B9_11D2_80BE_00A0C949ADAC__INCLUDED_)
45 #define AFX_STRINGEDIT_H__8F19DC24_06B9_11D2_80BE_00A0C949ADAC__INCLUDED_
49 #endif // _MSC_VER >= 1000
50 // IntegerEdit.h : header file
53 /////////////////////////////////////////////////////////////////////////////
56 class CStringEdit : public CCellEdit
60 CStringEdit(LPCTSTR pszInitialValue);
64 static LPCTSTR FORMAT_HEX;
65 static LPCTSTR FORMAT_INT;
68 void EnableDoubleClickEdit(bool bEnable=true,UINT idEdit=42) { m_bDoubleClickEdit=bEnable; m_idEdit=idEdit; }
70 // ClassWizard generated virtual function overrides
71 //{{AFX_VIRTUAL(CStringEdit)
77 void SetValue(__int64 n);
78 virtual ~CStringEdit();
80 // Generated message map functions
82 bool m_bDoubleClickEdit;
87 //{{AFX_MSG(CStringEdit)
88 afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
89 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
95 /////////////////////////////////////////////////////////////////////////////
97 //{{AFX_INSERT_LOCATION}}
98 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
100 #endif // !defined(AFX_STRINGEDIT_H__8F19DC24_06B9_11D2_80BE_00A0C949ADAC__INCLUDED_)