]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - tools/src/tools/Utils/win32/DoubleEdit.h
Initial revision
[karo-tx-redboot.git] / tools / src / tools / Utils / win32 / DoubleEdit.h
1 //####COPYRIGHTBEGIN####
2 //                                                                          
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
5 //
6 // This program is part of the eCos host tools.
7 //
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) 
11 // any later version.
12 // 
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 
16 // more details.
17 // 
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.
21 //
22 // ----------------------------------------------------------------------------
23 //                                                                          
24 //####COPYRIGHTEND####
25 // DoubleEdit.h: interface for the CDoubleEdit class.
26 //
27 //////////////////////////////////////////////////////////////////////
28
29 #if !defined(AFX_DOUBLEEDIT_H__A38F0509_4EFF_11D3_8003_00A0C9554250__INCLUDED_)
30 #define AFX_DOUBLEEDIT_H__A38F0509_4EFF_11D3_8003_00A0C9554250__INCLUDED_
31
32 #if _MSC_VER > 1000
33 #pragma once
34 #endif // _MSC_VER > 1000
35
36 #include "CellEdit.h"
37 class CConfigItem;
38
39 class CDoubleEdit : public CCellEdit  
40 {
41 public:
42         CDoubleEdit(double dInitialValue);
43         virtual ~CDoubleEdit();
44
45 // Overrides
46         // ClassWizard generated virtual function overrides
47         //{{AFX_VIRTUAL(CDoubleEdit)
48         public:
49         protected:
50         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
51         //}}AFX_VIRTUAL
52
53 protected:
54
55         CString TrimRightNoCase (const CString & strInput, LPCTSTR lpszTrimChars);
56         CString m_strPrevText;
57
58         //{{AFX_MSG(CDoubleEdit)
59         afx_msg void OnUpdate();
60         //}}AFX_MSG
61
62         DECLARE_MESSAGE_MAP()
63 };
64
65 #endif // !defined(AFX_DOUBLEEDIT_H__A38F0509_4EFF_11D3_8003_00A0C9554250__INCLUDED_)