home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / LANCELOT / LCNROBJ.CPP < prev    next >
C/C++ Source or Header  |  1995-04-07  |  4KB  |  68 lines

  1. /******************************************************************************
  2. * FILE NAME: lcnrobj.cpp                                                      *
  3. *                                                                             *
  4. * Classes:                                                                    *
  5. *   LCnrObject                                                                *
  6. *                                                                             *
  7. * COPYRIGHT:                                                                  *
  8. *   Licensed Materials - Property of IBM                                      *
  9. *   (C) Copyright IBM Corporation 1992, 1995                                  *
  10. *   All Rights Reserved                                                       *
  11. *   US Government Users Restricted Rights - Use, duplication, or disclosure   *
  12. *   restricted by GSA ADP Schedule Contract with IBM Corp.                    *
  13. ******************************************************************************/
  14.  
  15. #ifndef _IBASE_                         //Make sure ibase.hpp is included
  16.   #include <ibase.hpp>                  //  since that is where IC_<environ>
  17. #endif                                  //  is defined.
  18. #include "lcnrobj.hpp"
  19.  
  20. /******************************************************************************
  21. * Class LCnrObject :: LCnrObject - Constructor for the cnr object given a     *
  22. *   string title.                                                             *
  23. *                                                                             *
  24. * Define yourself as an IContainerObject                                      *
  25. ******************************************************************************/
  26. LCnrObject::LCnrObject( IString title, unsigned long icon )
  27.      :IContainerObject     ( title, icon )
  28. {
  29. /*-----------------------------------------------------------------------------
  30. | Decrement object usage count                                                |
  31. -----------------------------------------------------------------------------*/
  32.    decrementUsage();
  33. }
  34.  
  35.  
  36. /******************************************************************************
  37. * Class LCnrObject :: LCnrObject - Constructor for the cnr object given a     *
  38. *   resourceId title.                                                         *
  39. *                                                                             *
  40. * Define yourself as an IContainerObject                                      *
  41. ******************************************************************************/
  42. LCnrObject::LCnrObject( IResourceId title, unsigned long icon )
  43.      :IContainerObject     ( title, icon )
  44. {
  45. /*-----------------------------------------------------------------------------
  46. | Decrement object usage count                                                |
  47. -----------------------------------------------------------------------------*/
  48.    decrementUsage();
  49. }
  50.  
  51.  
  52. /******************************************************************************
  53. * Class LCnrObject :: LCnrObject - Constructor for the cnr object given an    *
  54. *   existing cnr object.                                                      *
  55. *                                                                             *
  56. * Define yourself as an IContainerObject                                      *
  57. ******************************************************************************/
  58. LCnrObject::LCnrObject( const LCnrObject& cnrobj )
  59.      :IContainerObject     ( (const IContainerObject&) cnrobj )
  60. {}
  61.  
  62.  
  63. /******************************************************************************
  64. * Class LCnrObject :: ~LCnrObject - Destructor for the info window            *
  65. ******************************************************************************/
  66. LCnrObject::~LCnrObject()
  67. {}
  68.