home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_09 / 1109058b < prev    next >
Text File  |  1993-07-08  |  621b  |  32 lines

  1. //  ostrwnd.h
  2.  
  3. //  Assumes #include "stdhdr.h" is in calling file
  4.  
  5. #if !defined (_OSTRWND_H_)
  6. #define     _OSTRWND_H_
  7.  
  8. #include    "CStrWnd.h"
  9.  
  10. class ostreamWnd : public CStrWnd
  11. {
  12. public:
  13. ostreamWnd (const char * window_name);
  14.  
  15. afx_msg void OnClose ()
  16.     {;}
  17.     //  Do nothing (this window should not be closed)
  18.  
  19. void SetBufferLines (const int new_size)
  20.     {max_lines_in_buffer = new_size;}
  21.  
  22. void PutText (const char * buf, int no_of_chars);
  23.     //  Enter a line of text no_of_chars long
  24.     //  into the text_buffer
  25.  
  26. DECLARE_MESSAGE_MAP ();
  27. private:
  28.  
  29. int max_lines_in_buffer;
  30. };
  31. #endif
  32.