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

  1. //    Copyright (c) 1993, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TURLView
  4. //    Include File:    turlview.h
  5. //    Purpose:    Provide the view of a URL
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //    Revision History:
  8. //        03-04-94    created
  9. #include"turlview.h"
  10.  
  11. void TURLView::LoadParent()    {
  12. //    Purpose:    Cause the load of the current view's parent.
  13. //    Arguments:    void
  14. //    Return Value:    void
  15. //    Remarks/Portability/Dependencies/Restrictions:
  16. //        Puts an event into the event queue such that the following
  17. //        actions should be taken by the owner of the TURLView:
  18. //            destroy the TURLView
  19. //            load the parent url in the TURLView's place.
  20. //    Revision History:
  21. //        03-04-94    created
  22.  
  23.  
  24.     auto TEvent TE_load;
  25.  
  26.     //    Set up the event.
  27.     //    Make sure to somehow mark which TURLView to destory through
  28.     //        this message.
  29.     TE_load.what = evCommand;
  30.     TE_load.message.command = cmLoadParent;
  31.     TE_load.message.infoPtr = (void *)this;
  32.  
  33.     //    Output the message.
  34.     putEvent(TE_load);
  35. }
  36.