home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / hello2 / ahellow2.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.4 KB  |  68 lines

  1. /******************************************************************************
  2. * .FILE:        ahellow2.hpp                                                  *
  3. *                                                                             *
  4. * .DESCRIPTION: Hello World Sample Program Version 2: Class Header            *
  5. *                                                                             *
  6. * .CLASSES:     AHelloWindow                                                  *
  7. *               ACommandHandler                                               *
  8. *                                                                             *
  9. * .COPYRIGHT:                                                                 *
  10. *    Licensed Material - Program-Property of IBM                              *
  11. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  12. *                                                                             *
  13. * .DISCLAIMER:                                                                *
  14. *   The following [enclosed] code is sample code created by IBM               *
  15. *   Corporation.  This sample code is not part of any standard IBM product    *
  16. *   and is provided to you solely for the purpose of assisting you in the     *
  17. *   development of your applications.  The code is provided 'AS IS',          *
  18. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  19. *   arising out of your use of the sample code, even if they have been        *
  20. *   advised of the possibility of such damages.                               *
  21. *                                                                             *
  22. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  23. *                                                                             *
  24. ******************************************************************************/
  25. #ifndef _AHELLOW2_
  26. #define _AHELLOW2_
  27.  
  28. #include <iframe.hpp>
  29. #include <istattxt.hpp>
  30. #include <iinfoa.hpp>
  31.  
  32.  
  33. /**************************************************************************
  34. * Class AHelloWindow--Main Frame Window                                   *
  35. **************************************************************************/
  36. class AHelloWindow : public IFrameWindow
  37. {
  38.  
  39. /*---------------------------  Constructor  ------------------------------|
  40. | Construct the object with:                                              |
  41. | 1)  with the WindowID                                                   |
  42. -------------------------------------------------------------------------*/
  43.   public:
  44.     AHelloWindow (const unsigned long windowId);
  45.  
  46.  
  47. /*----------------------------  Destructor  ------------------------------|
  48. | Destruct the object with:                                               |
  49. | 1)  no parameters                                                       |
  50. -------------------------------------------------------------------------*/
  51.   virtual
  52.    ~AHelloWindow() { }
  53.  
  54.  
  55.   private:
  56.     IStaticText
  57.       hello;
  58.     IInfoArea
  59.       infoArea;
  60. /*------------------------------ Operators -------------------------------|
  61. | Operators defined for this class:                                       |
  62. |  =  -- Assignment operator                                              |
  63. -------------------------------------------------------------------------*/
  64.   AHelloWindow
  65.    &operator= (const AHelloWindow&);
  66. };
  67. #endif
  68.