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

  1. #ifndef _AHELLOW2_
  2. #define _AHELLOW2_
  3. /*****************************************************************************
  4. * HELLO WORLD SAMPLE PROGRAM - Version 2: Class Header (ahellow2.hpp)        *
  5. *                                                                            *
  6. * COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1995. *
  7. *                                                                            *
  8. * DISCLAIMER OF WARRANTIES:                                                  *
  9. *   The following [enclosed] code is sample code created by IBM              *
  10. *   Corporation.  This sample code is not part of any standard IBM product   *
  11. *   and is provided to you solely for the purpose of assisting you in the    *
  12. *   development of your applications.  The code is provided "AS IS",         *
  13. *   without warranty of any kind.  IBM shall not be liable for any damages   *
  14. *   arising out of your use of the sample code, even if they have been       *
  15. *   advised of the possibility of such damages.                              *
  16. *****************************************************************************/
  17. //NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
  18.  
  19. #ifndef _IFRAME_                                                            //V2
  20.   #include <iframe.hpp>         //Include IFrameWindow class header           V2
  21. #endif                                                                      //V2
  22. #ifndef _ISTATTXT_                                                          //V2
  23.   #include <istattxt.hpp>       //Include IStaticText class header            V2
  24. #endif                                                                      //V2
  25. #ifndef _IINFOA_                                                            //V2
  26.   #include <iinfoa.hpp>         //Include IInfoArea class header              V2
  27. #endif                                                                      //V2
  28.  
  29. /**************************************************************************   V2
  30. * Class:   AHelloWindow                                                   *   V2
  31. *                                                                         *   V2
  32. * Purpose: Main Window class for C++ Hello World sample application.      *   V2
  33. *          It is derived from IFrameWindow class.                         *   V2
  34. *                                                                         *   V2
  35. **************************************************************************/ //V2
  36. class AHelloWindow : public IFrameWindow                                    //V2
  37. {                                                                           //V2
  38. public:                                                                     //V2
  39.     AHelloWindow(unsigned long windowId);                                   //V2
  40. virtual ~AHelloWindow() { }                 //Destructor for this class       V2
  41.  
  42.   private:                                                                  //V2
  43.     IStaticText   hello;                                                    //V2
  44.     IInfoArea     infoArea;                                                 //V2
  45.  
  46.     AHelloWindow(const AHelloWindow&);  //Default copy constructor            V2
  47. AHelloWindow                                                                //V2
  48.     &operator=(const AHelloWindow&);    //Default assignment operator         V2
  49. };                                                                          //V2
  50. #endif                                                                      //V2
  51.