home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ICLUI.ZIP / HELLO5 / AEARTHW5.HPP < prev    next >
Text File  |  1993-03-05  |  2KB  |  42 lines

  1. #ifndef AEARTHWINDOW_HPP
  2. #define AEARTHWINDOW_HPP
  3. /******************************************************************************/
  4. /* HELLO WORLD SAMPLE PROGRAM - Version 5: AEarthWindow Header (AEARTHW5.HPP) */
  5. /*                                                                            */
  6. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
  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.  
  18. //**************************************************************************
  19. // The entire file was created at version 5                                *
  20. //**************************************************************************
  21.  
  22. #include <istattxt.hpp>                 //IStaticText Class Header
  23. #include <ipainhdr.hpp>                 //IPaintHandler Class Header
  24.  
  25. //**************************************************************************
  26. // Class:   AHelloWindow                                                   *
  27. //                                                                         *
  28. // Purpose: "Earth" window for the C++ Hello World sample application.     *
  29. //          It is a subclass of IStaticText & IPaintHandler.               *
  30. //                                                                         *
  31. //**************************************************************************
  32. class AEarthWindow : public IStaticText, public IPaintHandler
  33. {
  34.   public:
  35.     AEarthWindow(unsigned long windowId,//AEarthWindow Constructor
  36.       IWindow * parentownerWindow,      //  Parent/Owner Window
  37.       const IRectangle& rect=IRectangle()); //  Origin/Size Rectangle
  38.  
  39.     Boolean paintWindow(IPaintEvent&) ; //Handle the paint window event
  40. };
  41. #endif
  42.