00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00024
00025 #if !defined(AFX_INPLACEEDIT_H__ECD42821_16DF_11D1_992F_895E185F9C72__INCLUDED_)
00026 #define AFX_INPLACEEDIT_H__ECD42821_16DF_11D1_992F_895E185F9C72__INCLUDED_
00027
00028 #if _MSC_VER >= 1000
00029 #pragma once
00030 #endif // _MSC_VER >= 1000
00031
00032 class CInPlaceEdit2 : public CEdit
00033 {
00034
00035 public:
00036 CInPlaceEdit2(CWnd* pParent, CRect& rect, DWORD dwStyle, UINT nID,
00037 int nRow, int nColumn, CString sInitText, UINT nFirstChar);
00038
00039
00040 public:
00041
00042
00043 public:
00044 void EndEdit();
00045
00046
00047
00048
00049 public:
00050 virtual BOOL PreTranslateMessage(MSG* pMsg);
00051 protected:
00052 virtual void PostNcDestroy();
00053
00054
00055
00056 public:
00057 virtual ~CInPlaceEdit2();
00058
00059
00060 protected:
00061
00062 afx_msg void OnKillFocus(CWnd* pNewWnd);
00063 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
00064 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
00065 afx_msg UINT OnGetDlgCode();
00066
00067 DECLARE_MESSAGE_MAP()
00068
00069 private:
00070 int m_nRow;
00071 int m_nColumn;
00072 CString m_sInitText;
00073 UINT m_nLastChar;
00074 BOOL m_bExitOnArrows;
00075 CRect m_Rect;
00076 };
00077
00079
00080
00081
00082
00083 #endif // !defined(AFX_INPLACEEDIT_H__ECD42821_16DF_11D1_992F_895E185F9C72__INCLUDED_)