source: trunk/EraserUI/InPlaceEdit.h @ 27

Revision 27, 2.4 KB checked in by lowjoel, 7 years ago (diff)

In goes the 3rd party code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1// InPlaceEdit.h
2//
3// Eraser. Secure data removal. For Windows.
4// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com).
5//
6// This program is free software; you can redistribute it and/or
7// modify it under the terms of the GNU General Public License
8// as published by the Free Software Foundation; either version 2
9// of the License, or (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19// 02111-1307, USA.
20
21#if !defined(AFX_INPLACEEDIT_H__F7B76741_D7D4_11D2_BBD0_00105AAF62C4__INCLUDED_)
22#define AFX_INPLACEEDIT_H__F7B76741_D7D4_11D2_BBD0_00105AAF62C4__INCLUDED_
23
24#if _MSC_VER > 1000
25#pragma once
26#endif // _MSC_VER > 1000
27
28#define IDC_IPEDIT  30000
29
30/////////////////////////////////////////////////////////////////////////////
31// CInPlaceEdit window
32
33class CInPlaceEdit : public CEdit
34{
35// Construction
36public:
37    CInPlaceEdit(int iItem, int iSubItem, CString sInitText);
38
39// Attributes
40public:
41
42// Operations
43public:
44
45// Overrides
46    // ClassWizard generated virtual function overrides
47    //{{AFX_VIRTUAL(CInPlaceEdit)
48    public:
49    virtual BOOL PreTranslateMessage(MSG* pMsg);
50    //}}AFX_VIRTUAL
51
52// Implementation
53public:
54    virtual ~CInPlaceEdit();
55
56    // Generated message map functions
57protected:
58    //{{AFX_MSG(CInPlaceEdit)
59    afx_msg void OnKillFocus(CWnd* pNewWnd);
60    afx_msg void OnNcDestroy();
61    afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
62    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
63    //}}AFX_MSG
64
65    DECLARE_MESSAGE_MAP()
66private:
67    int m_iItem;
68    int m_iSubItem;
69    CString m_sInitText;
70    BOOL m_bESC;         // To indicate whether ESC key was pressed
71
72    BOOL m_bNext;
73    int m_iNextItem;
74    int m_iNextSubItem;
75};
76
77/////////////////////////////////////////////////////////////////////////////
78
79//{{AFX_INSERT_LOCATION}}
80// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
81
82#endif // !defined(AFX_INPLACEEDIT_H__F7B76741_D7D4_11D2_BBD0_00105AAF62C4__INCLUDED_)
Note: See TracBrowser for help on using the repository browser.