XEdit.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // XEdit.h : header file
  2. //
  3. #ifndef XEDIT_H
  4. #define XEDIT_H
  5. extern UINT WM_XEDIT_KILL_FOCUS;
  6. extern UINT WM_XEDIT_VK_ESCAPE;
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CXEdit window
  9. class CXEdit : public CEdit
  10. {
  11. // Construction
  12. public:
  13. CXEdit(CWnd *pParent, LPCTSTR lpszText);
  14. virtual ~CXEdit();
  15. // Attributes
  16. public:
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CXEdit)
  22. public:
  23. virtual BOOL PreTranslateMessage(MSG* pMsg);
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. protected:
  27. CWnd * m_pParent;
  28. CString m_strText;
  29. BOOL m_bMessageSent;
  30. void SendRegisteredMessage(UINT nMsg, WPARAM wParam = 0, LPARAM lParam = 0);
  31. // Generated message map functions
  32. protected:
  33. //{{AFX_MSG(CXEdit)
  34. afx_msg void OnKillFocus(CWnd* pNewWnd);
  35. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  36. afx_msg void OnPaint();
  37. afx_msg void OnDestroy();
  38. afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. };
  42. //{{AFX_INSERT_LOCATION}}
  43. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  44. #endif //XEDIT_H