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 #if !defined(AFX_CELLEDIT_H__B7D5072A_9B59_11D3_A537_00A0C949ADAC__INCLUDED_)
26 #define AFX_CELLEDIT_H__B7D5072A_9B59_11D3_A537_00A0C949ADAC__INCLUDED_
30 #endif // _MSC_VER > 1000
31 // Cell.h : header file
34 /////////////////////////////////////////////////////////////////////////////
36 enum {WM_CANCEL_EDIT=WM_USER+99}; // wParam=1 for end, 0 for cancel
37 class CCell : public CWnd
41 CCell(LPCTSTR pszInitialValue);
50 // ClassWizard generated virtual function overrides
51 //{{AFX_VIRTUAL(CCell)
53 virtual BOOL PreTranslateMessage(MSG* pMsg);
54 virtual BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
60 virtual void OnUpdateEditCopy (CCmdUI*){}
61 virtual void OnUpdateEditDelete (CCmdUI*){}
62 virtual void OnUpdateEditPaste (CCmdUI*){}
63 virtual void OnUpdateEditCut (CCmdUI*){}
64 virtual void OnEditCopy (){}
65 virtual void OnEditDelete (){}
66 virtual void OnEditPaste (){}
67 virtual void OnEditCut (){}
68 // Generated message map functions
70 CString m_strInitialValue;
72 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
77 /////////////////////////////////////////////////////////////////////////////
79 //{{AFX_INSERT_LOCATION}}
80 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
82 #endif // !defined(AFX_CELLEDIT_H__B7D5072A_9B59_11D3_A537_00A0C949ADAC__INCLUDED_)