home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sompar.zip / INFODLG.HPP < prev    next >
C/C++ Source or Header  |  1994-01-07  |  1KB  |  64 lines

  1. //
  2. // Project: Digitalk Parts like Toolbar and SOMObjects Demo
  3. // File:    Infodlg.hpp
  4. // Author:  Stewart Hyde
  5. // Created: Jan    7, 1994
  6. // Updated: Jan    7, 1994
  7. //
  8. // Description:
  9. //
  10.  
  11. #ifndef _INFODLG_HPP_
  12. #define _INFODLG_HPP_
  13.  
  14. #ifndef _IFRAME_
  15.     #include <iframe.hpp>
  16. #endif
  17.  
  18. #ifndef _ICMDHDR_
  19.     #include <icmdhdr.hpp>         
  20. #endif
  21.  
  22. #ifndef _IWINDOW_
  23.     #include <iwindow.hpp>
  24. #endif
  25.  
  26. // ------------------------------------------------------------------------
  27. //  Class:            InfoDialog
  28. //  Derived:        IFrameWindow
  29. //                        ICommandHandler
  30. //                
  31. //  Description:    This class describes a generialize of loading information
  32. //                        only dialogs from the resource file
  33. //
  34. // ------------------------------------------------------------------------
  35.  
  36.  
  37. class InfoDialog :  public ICommandHandler,
  38.                          public IFrameWindow    
  39. {
  40.       typedef IFrameWindow Inherited;
  41.       public:  
  42.         InfoDialog(unsigned long DialogId, IWindow * parentWnd, IWindow * ownerWnd);
  43.         ~InfoDialog();        
  44.        Boolean DisplayDialog();     
  45.  
  46.      protected:
  47.         Boolean command(ICommandEvent& cmdEvent);                               
  48.  
  49.       private:
  50.         Boolean DialogReturn;
  51. };
  52.  
  53. //
  54. // inline functions
  55. //
  56.  
  57. inline InfoDialog::~InfoDialog()
  58. {
  59. }
  60.  
  61.  
  62. #endif
  63.  
  64.