home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / igpb1.zip / AHELLOW4.HPP < prev    next >
Text File  |  1994-03-10  |  4KB  |  58 lines

  1. #ifndef AHELLOWINDOW_HPP
  2. #define AHELLOWINDOW_HPP
  3. /******************************************************************************/
  4. /* HELLO WORLD SAMPLE PROGRAM - Version 4: Class Header (AHELLOW4.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. // NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE
  18.  
  19. #include <iframe.hpp>           //Include IFrameWindow Class Header
  20. #include <icmdhdr.hpp>          //Include ICommandEvent & ICommandHandler     v3
  21.  
  22. // following for sizing graphic button borders
  23. #include "igpbrdr.hpp"
  24.  
  25. class ATextDialog;              //Define the ATextDialog Class                v4
  26.  
  27. //**************************************************************************
  28. // Class:   AHelloWindow                                                   *
  29. //                                                                         *
  30. // Purpose: Main Window for C++ Hello World sample application             *
  31. //          It is a subclass of IFrameWindow & ICommandHandler             *  v3
  32. //                                                                         *
  33. //**************************************************************************
  34. class AHelloWindow : public IFrameWindow,
  35.                      public ICommandHandler                                 //v3
  36. {
  37.   public:                               //Define the Public Information
  38.     AHelloWindow(unsigned long windowId); //Constructor for this class
  39.  
  40.   protected:                            //Define Protected Member             v3
  41.     Boolean command(ICommandEvent& cmdEvent);                               //v3
  42.     virtual Boolean setupButtons();     //Setup Buttons                       v4
  43.  
  44.   private:                              //Define Private Information
  45.     IStaticText   * hello;              //Hello contains "Hello, World" text
  46.     IInfoArea     * infoArea;           //Define an Information Area          v2
  47.                                         //  Control to create an information   .
  48.                                         //  area beneath the client area      v2
  49.     IStaticText   * statusLine;         //Status Line at top of client window v3
  50.     IMenuBar      * menuBar;            //Define Menu Bar                     v3
  51.     ATextDialog   * textDialog;         //Define Text Dialog                  v4
  52.     IPushButton   * leftButton;           //Define Left Button                 .
  53.     IPushButton   * centerButton;         //Define Center Button               .
  54.     IPushButton   * rightButton;          //Define Right Button               v4
  55.     IGPBorderSizer  gpBorderSizer;
  56. };
  57. #endif
  58.