home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / HISTORY.ZIP / Hacks / HistoryEditDemo / HistoryEdit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-15  |  1.4 KB  |  65 lines

  1. /*
  2.  *  HistoryEdit.h
  3.  *
  4.  *  Description:
  5.  *    CHistoryEdit interface
  6.  *
  7.  *    A CEdit subclass that allows you to display a scrolling history
  8.  *    of text entries.
  9.  *
  10.  *  Author:
  11.  *    Ravi Bhavnani (ravib@datablast.net)
  12.  *
  13.  *  Revision History:
  14.  *    15 Mar 1998   rab   Original version
  15.  */
  16.  
  17. #ifndef _HistoryEdit_h_
  18. #define _HistoryEdit_h_
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CHistoryEdit window
  22.  
  23. class CHistoryEdit : public CEdit
  24. {
  25. // Construction
  26. public:
  27.     CHistoryEdit();
  28.  
  29. // Attributes
  30. public:
  31.  
  32. // Operations
  33. public:
  34.   void  AppendString (CString str);
  35.   BOOL  IsSelectable() { return m_bSelectable; }
  36.   void  AllowSelection (BOOL bAllowSelect) { m_bSelectable = bAllowSelect; }
  37.  
  38. // Overrides
  39.     // ClassWizard generated virtual function overrides
  40.     //{{AFX_VIRTUAL(CHistoryEdit)
  41.     //}}AFX_VIRTUAL
  42.  
  43. // Implementation
  44. public:
  45.     virtual ~CHistoryEdit();
  46.  
  47.     // Generated message map functions
  48. protected:
  49.     //{{AFX_MSG(CHistoryEdit)
  50.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  51.     //}}AFX_MSG
  52.     DECLARE_MESSAGE_MAP()
  53.  
  54. protected:
  55.   BOOL  m_bSelectable;                          // flag: user can select text in control
  56. };
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59.  
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  62.  
  63. #endif
  64.  
  65. // End HistoryEdit.h