]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - tools/src/tools/Utils/win32/IntegerEdit.h
Initial revision
[karo-tx-redboot.git] / tools / src / tools / Utils / win32 / IntegerEdit.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 //===========================================================================
26 //#####DESCRIPTIONBEGIN####
27 //
28 // Author(s):   sdf
29 // Contact(s):  sdf
30 // Date:                1998/08/11
31 // Version:             0.01
32 // Purpose:     
33 // Description: Interface of the masked edit control used by the control view for
34 //                              in-cell editing
35 // Requires:    
36 // Provides:    
37 // See also:    
38 // Known bugs:  
39 // Usage:       
40 //
41 //####DESCRIPTIONEND####
42 //
43 //===========================================================================
44 #if !defined(AFX_INTEGEREDIT_H__8F19DC24_06B9_11D2_80BE_00A0C949ADAC__INCLUDED_)
45 #define AFX_INTEGEREDIT_H__8F19DC24_06B9_11D2_80BE_00A0C949ADAC__INCLUDED_
46
47 #if _MSC_VER >= 1000
48 #pragma once
49 #endif // _MSC_VER >= 1000
50 // IntegerEdit.h : header file
51 //
52 class CConfigItem;
53 /////////////////////////////////////////////////////////////////////////////
54 // CIntegerEdit window
55 #include "CellEdit.h"
56 class CIntegerEdit : public CCellEdit
57 {
58 // Construction
59 public:
60         CIntegerEdit(__int64 nInitialValue);
61
62 // Attributes
63 public:
64         static LPCTSTR FORMAT_HEX;
65         static LPCTSTR FORMAT_INT;
66 // Operations
67 public:
68
69 // Overrides
70         // ClassWizard generated virtual function overrides
71         //{{AFX_VIRTUAL(CIntegerEdit)
72         public:
73         protected:
74         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
75         //}}AFX_VIRTUAL
76
77 // Implementation
78 public:
79   void SetValue(__int64 n);
80         virtual ~CIntegerEdit();
81
82         // Generated message map functions
83 protected:
84         bool m_bInSize;
85         CSpinButtonCtrl m_wndSpin;
86
87         CString m_strPrevText;
88         bool m_bHex;
89         CString m_strData;
90         //{{AFX_MSG(CIntegerEdit)
91         afx_msg void OnUpdate();
92         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
93         afx_msg void OnSize(UINT nType, int cx, int cy);
94         //}}AFX_MSG
95
96         DECLARE_MESSAGE_MAP()
97 };
98
99 /////////////////////////////////////////////////////////////////////////////
100
101 //{{AFX_INSERT_LOCATION}}
102 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
103
104 #endif // !defined(AFX_INTEGEREDIT_H__8F19DC24_06B9_11D2_80BE_00A0C949ADAC__INCLUDED_)