1 |
1254 |
phoenix |
//####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 |
|
|
#if !defined(AFX_CELL_H__B7D5072E_9B59_11D3_A537_00A0C949ADAC__INCLUDED_)
|
26 |
|
|
#define AFX_CELL_H__B7D5072E_9B59_11D3_A537_00A0C949ADAC__INCLUDED_
|
27 |
|
|
|
28 |
|
|
#if _MSC_VER > 1000
|
29 |
|
|
#pragma once
|
30 |
|
|
#endif // _MSC_VER > 1000
|
31 |
|
|
// CellEdit.h : header file
|
32 |
|
|
//
|
33 |
|
|
#include "Cell.h"
|
34 |
|
|
/////////////////////////////////////////////////////////////////////////////
|
35 |
|
|
// CCellEdit window
|
36 |
|
|
|
37 |
|
|
class CCellEdit : public CCell
|
38 |
|
|
{
|
39 |
|
|
// Construction
|
40 |
|
|
public:
|
41 |
|
|
CCellEdit(LPCTSTR pszInitialValue);
|
42 |
|
|
|
43 |
|
|
// Attributes
|
44 |
|
|
public:
|
45 |
|
|
|
46 |
|
|
// Operations
|
47 |
|
|
public:
|
48 |
|
|
|
49 |
|
|
// Overrides
|
50 |
|
|
// ClassWizard generated virtual function overrides
|
51 |
|
|
//{{AFX_VIRTUAL(CCellEdit)
|
52 |
|
|
public:
|
53 |
|
|
virtual BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
|
54 |
|
|
//}}AFX_VIRTUAL
|
55 |
|
|
|
56 |
|
|
// Implementation
|
57 |
|
|
public:
|
58 |
|
|
virtual void OnEditCopy ();
|
59 |
|
|
virtual void OnEditDelete ();
|
60 |
|
|
virtual void OnEditPaste ();
|
61 |
|
|
virtual void OnEditCut ();
|
62 |
|
|
virtual void OnUpdateEditCopy (CCmdUI *pCmdUI);
|
63 |
|
|
virtual void OnUpdateEditDelete (CCmdUI *pCmdUI);
|
64 |
|
|
virtual void OnUpdateEditPaste (CCmdUI *pCmdUI);
|
65 |
|
|
virtual void OnUpdateEditCut (CCmdUI *pCmdUI);
|
66 |
|
|
|
67 |
|
|
virtual ~CCellEdit();
|
68 |
|
|
|
69 |
|
|
// Generated message map functions
|
70 |
|
|
protected:
|
71 |
|
|
//{{AFX_MSG(CCellEdit)
|
72 |
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
73 |
|
|
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
|
74 |
|
|
afx_msg void OnKillFocus(CWnd* pNewWnd);
|
75 |
|
|
//}}AFX_MSG
|
76 |
|
|
|
77 |
|
|
DECLARE_MESSAGE_MAP()
|
78 |
|
|
};
|
79 |
|
|
|
80 |
|
|
/////////////////////////////////////////////////////////////////////////////
|
81 |
|
|
|
82 |
|
|
//{{AFX_INSERT_LOCATION}}
|
83 |
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
84 |
|
|
|
85 |
|
|
#endif // !defined(AFX_CELL_H__B7D5072E_9B59_11D3_A537_00A0C949ADAC__INCLUDED_)
|