home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Harvest C 1.3 / Source Code / CAboutBoxDialog.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-11  |  1.4 KB  |  55 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CAboutBoxDialog.c
  3.  
  4.         A subclass of CDLOGDirector that displays the about box.
  5.         
  6.     SUPERCLASS = CDLOGDirector
  7.     
  8.     Copyright © 1991 Symantec Corporation. All rights reserved.
  9.     
  10.  
  11.  ******************************************************************************/
  12.  
  13. #include "CAboutBoxDialog.h"
  14. #include "CApplication.h"
  15. #include "Commands.h"
  16. #include "DemoCommands.h"
  17. #include "CRadioGroupPane.h"
  18. #include "CWindow.h"
  19.  
  20. #define    kAboutBoxDLOGID    130    // resource ID of the DLOG resource
  21.  
  22. /******************************************************************************
  23.  IAboutBoxDialog
  24.  
  25.      Initialize the dialog. This method also assigns help balloon resource
  26.      indexes for some of the panes in the window.
  27.      
  28. ******************************************************************************/
  29.  
  30. void CAboutBoxDialog::IAboutBoxDialog( CDirectorOwner *aSupervisor)
  31. {
  32.     
  33.     CDLOGDirector::IDLOGDirector( kAboutBoxDLOGID, aSupervisor);
  34.     
  35. }
  36.  
  37. /******************************************************************************
  38.  DoAbout
  39.  
  40. ******************************************************************************/
  41.  
  42. long CAboutBoxDialog::DoAbout( void)
  43. {
  44.     long             theCommand;
  45.         // show the dialog
  46.         
  47.     BeginDialog();
  48.     
  49.         // run the dialog and return the final command.
  50.         
  51.     theCommand = DoModalDialog( cmdOK);
  52.     
  53.     return theCommand;
  54. }
  55.