#if !defined(AFX_EDITENTER_H__4DC745C3_29EE_45E4_ABFA_CAD392AF8F50__INCLUDED_) #define AFX_EDITENTER_H__4DC745C3_29EE_45E4_ABFA_CAD392AF8F50__INCLUDED_ #define UWM_EDIT_COMPLETE_MSG _T("UWM_EDIT_COMPLETE-{165BBEA0-C1A8-11d5-A04D-006067718D04}") #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 static UINT UWM_EDIT_COMPLETE = ::RegisterWindowMessage(UWM_EDIT_COMPLETE_MSG); // EditEnter.h : header file // ///////////////////////////////////////////////////////////////////////////// // CEditEnter window class CEditEnter : public CEdit { // Construction public: CEditEnter(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CEditEnter) //}}AFX_VIRTUAL // Implementation public: virtual ~CEditEnter(); void SetLines(void); int GetLines(void); int CharFromPosFix(CPoint pt); CString GetTextAt(int line_index); // Generated message map functions protected: //{{AFX_MSG(CEditEnter) afx_msg void OnKillfocus(); afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg UINT OnGetDlgCode(); // afx_msg void OnPaint(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: int m_uLines; }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_EDITENTER_H__4DC745C3_29EE_45E4_ABFA_CAD392AF8F50__INCLUDED_)