home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / SAMPLES / ICLUI / HELLO5 / ADIALOG5.HPP < prev    next >
Text File  |  1993-05-12  |  3KB  |  51 lines

  1. #ifndef ATEXTDIALOG_HPP
  2. #define ATEXTDIALOG_HPP
  3. /******************************************************************************/
  4. /* HELLO WORLD SAMPLE PROGRAM - Version 5: ATextDialog Class  (ADIALOG5.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 4                                *
  20. //**************************************************************************
  21.  
  22. #include <iframe.hpp>                   //IFrameWindow Class (Parent)
  23. #include <icmdhdr.hpp>                  //ICommandHandler (Parent)
  24.  
  25. class IEntryField;
  26.  
  27. //**************************************************************************
  28. // Class:   ATextDialog                                                    *
  29. //                                                                         *
  30. // Purpose: Dialog window for the C++ Hello World sample application.      *
  31. //          It is a subclass of IFrameWindow, ICommandHandler              *
  32. //                                                                         *
  33. //**************************************************************************
  34. class ATextDialog : public IFrameWindow, public ICommandHandler
  35. {
  36. public:
  37.   ATextDialog (IString & textString, IWindow * ownerWnd) ;
  38.   ~ATextDialog();
  39.  
  40. protected:
  41.   virtual Boolean
  42.     command(ICommandEvent& cmdevt);     //Process the dialog command events
  43.  
  44. private:
  45.   IEntryField * textField ;             //Entry Field to Edit Hello Text
  46.   IString & textValue ;                 //String Value for in/out of dialog
  47.  
  48. }; // TextDialog
  49.  
  50. #endif
  51.