home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / LANCELOT / LINFOWIN.HPP < prev    next >
C/C++ Source or Header  |  1995-04-01  |  4KB  |  87 lines

  1. /******************************************************************************
  2. * FILE NAME: linfowin.hpp                                                     *
  3. *                                                                             *
  4. * DESCRIPTION: Frame window with a notebook of information pages              *
  5. *                                                                             *
  6. * Class                                                                       *
  7. *   LInfoWindow                                                               *
  8. *                                                                             *
  9. * COPYRIGHT:                                                                  *
  10. *   Licensed Materials - Property of IBM                                      *
  11. *   (C) Copyright IBM Corporation 1992, 1995                                  *
  12. *   All Rights Reserved                                                       *
  13. *   US Government Users Restricted Rights - Use, duplication, or disclosure   *
  14. *   restricted by GSA ADP Schedule Contract with IBM Corp.                    *
  15. *                                                                             *
  16. ******************************************************************************/
  17. #ifndef _LINFOWIN_
  18.   #define _LINFOWIN_
  19.  
  20. #include <iframe.hpp>
  21. #include <ititle.hpp>
  22. #include <ipoint.hpp>
  23. #include <icmdhdr.hpp>
  24. #include <ihelp.hpp>
  25. #include <ihelphdr.hpp>
  26. #include "linfowin.hpp"
  27. #include "linfonb.hpp"
  28. #include "lcnrobj.hpp"
  29.  
  30. class LMainCnr;
  31.  
  32. /******************************************************************************
  33. * Class LInfoWindow - LInfoWindow frame window                                *
  34. ******************************************************************************/
  35. class LInfoWindow : public IFrameWindow, 
  36.                     protected ICommandHandler
  37. {
  38.    public:
  39. /*------------------------ Constructors/Destructor ----------------------------
  40. | Construct the object in one of two ways:                                    |
  41. | 1) ResourceId, parent, owner, location, cnr object, employee, isQuery flag. |
  42. | 2) ResourceId, parent, owner, location, cnr, cnr object, isQuery flag.      |
  43. -----------------------------------------------------------------------------*/
  44.       LInfoWindow( unsigned long id,
  45.                    IWindow* parent,
  46.                    IWindow* owner,
  47.                    IPoint bottomLeft,
  48.                    LCnrObject* object,
  49.                    LEmployeeData& employee,
  50.                    Boolean isQuery = true );
  51.  
  52.       LInfoWindow( unsigned long id,
  53.                    IWindow* parent,
  54.                    IWindow* owner,
  55.                    IPoint bottomLeft,
  56.                    LMainCnr* cnr,
  57.                    LCnrObject* object,
  58.                    IString queryName = NULL );
  59.       virtual
  60.         ~LInfoWindow();
  61.  
  62.     protected:
  63. /*----------------------------- Event Processing ------------------------------
  64. | Handle and process events:                                                  |
  65. |   systemCommand       - Handle system command events like 'close'.          |
  66. -----------------------------------------------------------------------------*/
  67.       Boolean
  68.          systemCommand( ICommandEvent& event );
  69.  
  70.    private:
  71.       ITitle
  72.          title;
  73.  
  74.       LInfoNotebook
  75.          notebook;
  76.  
  77.       IHelpWindow
  78.          help;
  79.  
  80.       LCnrObject
  81.         *pObject;
  82.  
  83.       Boolean
  84.          isAQuery;
  85. };
  86. #endif
  87.