home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / kwclass.zip / KLSTHDR.HPP < prev    next >
C/C++ Source or Header  |  1994-04-18  |  521b  |  31 lines

  1. #ifndef _KLSTHDR_
  2.   #define _KLSTHDR_
  3.  
  4. #ifndef _ISELHDR_
  5.   #include <iselhdr.hpp>
  6. #endif
  7.  
  8. class ITextControl;
  9. class IControlEvent;
  10.  
  11. class KListHandler : public ISelectHandler
  12. {
  13.    public:
  14.      KListHandler(ITextControl *targetWin) 
  15.        : target(targetWin) 
  16.      {
  17.      }
  18.  
  19.      KListHandler& setTarget(ITextControl *targetWin)
  20.      {
  21.        target = targetWin;
  22.        return *this;
  23.      }
  24.  
  25.    protected:
  26.       Boolean selected(IControlEvent &event);
  27.       ITextControl *target;
  28. };
  29.  
  30. #endif
  31.