home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / CFGED1B.ZIP / CFGEDSRC.ZIP / ABOUT.CC next >
C/C++ Source or Header  |  1992-08-09  |  3KB  |  96 lines

  1. // this might look like 'C', but it's really  -*-c++-*-
  2. /* about.cc
  3.  *
  4.  * Implementation of class MainBrowserDlg for CFGED
  5.  *
  6.  * Language        : C++
  7.  * Operating System: OS/2 V2.0 and higher
  8.  * Compiler        : GNU GCC V2.1 and higher
  9.  *
  10.  *
  11.  * $Id: about.cc,v 1.2 1992/08/09 21:55:15 gruen Exp $
  12.  * $Log: about.cc,v $
  13. // Revision 1.2  1992/08/09  21:55:15  gruen
  14. // beta release 1.0 of cfged. Changed the architecture: now using a dialog
  15. // box as main window. As an result the accelerators now work. As goodie
  16. // there is a new special-browser for HELP and last but not least the
  17. // warning at the end of the program occures only if there not saved
  18. // changes to the configuration.
  19. //
  20. // Revision 1.1  1992/07/17  00:23:25  gruen
  21. // Initial revision
  22. //
  23.  *
  24.  * Copyright (c) 1992 Lutz Grueneberg
  25.  *
  26.  * This library is free software; you can redistribute it and/or modify
  27.  * it under the terms of the GNU Library General Public License as
  28.  * published by the Free Software Foundation; either version 2 of the
  29.  * License, or (at your option) any later version.  This library is
  30.  * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  31.  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  32.  * A PARTICULAR PURPOSE.  See the GNU Library General Public License for
  33.  * more details. You should have received a copy of the GNU Library
  34.  * General Public License along with this library; if not, write to the
  35.  * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  36.  */
  37. #define INCL_PM
  38. #include <os2.h>
  39. #include <pmviews/pmviews.h>
  40. #include "about.h"
  41. #include "maindlg.h"
  42.  
  43.      AboutDlg::AboutDlg( HWND hwndOwnerNew, 
  44.             USHORT  idResNew,
  45.             HWND hwndParentNew=HWND_DESKTOP)
  46. :( hwndOwnerNew, idResNew, hwndParentNew) {
  47.           
  48.   plb = new ListBox( this, AB_LB);
  49. }
  50.     
  51. MRESULT AboutDlg::msgInitDlg( HWND hwnd, USHORT msg, 
  52.                    MPARAM mp1, MPARAM mp2, BOOL *fDoDefault) {
  53.   plb->enableUpdate( FALSE);    // disable update for performance reasons
  54.   plb->deleteAll();
  55.   plb->insertItem
  56.     ( LIT_END, 
  57.      "This program is free software; you can redistribute it and/or modify");
  58.   plb->insertItem
  59.     ( LIT_END, 
  60.      "it under the terms of the GNU General Public License as");
  61.   plb->insertItem
  62.     ( LIT_END, 
  63.      "published by the Free Software Foundation; either version 2 of the");
  64.   plb->insertItem
  65.     ( LIT_END, 
  66.      "License, or (at your option) any later version.  This program is");
  67.   plb->insertItem
  68.     ( LIT_END, 
  69.   "distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;");
  70.   plb->insertItem
  71.     ( LIT_END, 
  72.      "without even the implied warranty of MERCHANTABILITY or FITNESS FOR");
  73.   plb->insertItem
  74.     ( LIT_END, 
  75.      "A PARTICULAR PURPOSE.  See the GNU General Public License for");
  76.   plb->insertItem
  77.     ( LIT_END, 
  78.      "more details. You should have received a copy of the");
  79.   plb->insertItem
  80.     ( LIT_END, 
  81.      "GNU General Public License along with this program;");
  82.   plb->insertItem
  83.     ( LIT_END, "if not, write to the Free Software Foundation,");
  84.   plb->insertItem
  85.     ( LIT_END, "675 Mass Ave, Cambridge, MA 02139, USA.");
  86.   plb->show( TRUE);        // enable update and force redraw
  87.   *fDoDefault = TRUE;
  88.   return 0;
  89. }
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.