home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / LCicnCheck / LCicnCheck.h < prev    next >
Encoding:
Text File  |  1996-08-12  |  1.6 KB  |  53 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    LCicnCheck.h               ©1996 Gregory S. Combs <combs@io.com>
  3. // ===========================================================================
  4. //
  5. //    An LCicnButton that works as a checkbox.
  6. //
  7. //    (License mumbo-jumbo "borrowed" from Christophe ANDRES, chrisoft@calva.net)
  8. //
  9. //    You may use this source code in any application (commercial, shareware, freeware,
  10. //    postcardware, etc), but not remove this notice (no need to acknowledge the use of
  11. //    this class in the about box)
  12. //    You may not sell this source code in any form. This source code may be placed on 
  13. //    publicly accessable archive sites and source code disks. It may not be placed on 
  14. //    profit archive sites and source code disks without the permission of the author, 
  15. //    Gregory S. Combs.
  16. //    
  17. //        This source code is distributed in the hope that it will be useful,
  18. //        but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. //        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20. //
  21. //    If you make any change or improvement on this class, please send the improved/changed
  22. //    version to : combs@io.com
  23. //
  24.  
  25. #ifndef _H_LCicnCheck
  26. #define _H_LCicnCheck
  27. #pragma once
  28.  
  29. #include <LControl.h>
  30.  
  31. #ifndef __ICONS__
  32. #include <Icons.h>
  33. #endif
  34.  
  35.  
  36. class    LCicnCheck : public LCicnButton {
  37. public:
  38.     enum { class_ID = 'ICNc' };
  39.     static LCicnCheck*    CreateCicnCheckStream(LStream *inStream);
  40.     
  41.                         LCicnCheck();
  42.                         LCicnCheck(const LCicnCheck &inOriginal);
  43.                         LCicnCheck(LStream *inStream);
  44.     virtual                ~LCicnCheck();
  45.     
  46. protected:
  47.  
  48.     virtual void        DrawSelf();    
  49.     
  50.     virtual void        HotSpotResult(short inHotSpot);
  51. };
  52.  
  53. #endif