home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / tcaptur3.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1000 b   |  36 lines

  1. //    Copyright (c) 1994, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TCapture
  4. //    Include File:    tcapture.h
  5. //    Purpose:    Captures c streams stdout and sterr to a window.
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //        Works in conjuction with the c source file capstdio.c and
  8. //        two global variables capstdout and capstderr in globals.c
  9. //    Revision History:
  10. //        01-08-94    created
  11. //        02-09-94    Split all members into seperate files.
  12. #include"tcapture.h"
  13.  
  14. void TCapture::handleEvent(TEvent& TE)    {
  15. //    Purpose:    Event handler for the TCapture window.
  16. //    Arguments:    TE    The event.
  17. //    Return Value:    void
  18. //    Remarks/Portability/Dependencies/Restrictions:
  19. //    Revision History:
  20. //        01-08-94    created
  21.  
  22.     //    Do our handling of the event.
  23.     if(TE.what & evCommand)    {
  24.         switch(TE.message.command)    {
  25.         case cmClose:
  26.             //    Don't want to close window, only hide.
  27.             hide();
  28.             clearEvent(TE);
  29.             break;
  30.         }
  31.     }
  32.  
  33.     //    Call the base event handler.
  34.     TWindow::handleEvent(TE);
  35. }
  36.