home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / extlib / valueset / vsetevt.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  795 b   |  35 lines

  1. //************************************************************
  2. // Extending the Library - Value Set Example
  3. //
  4. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  5. // All Rights Reserved.
  6. //************************************************************
  7. #include <os2def.h>
  8. #include <ipoint.hpp>
  9. #include "vsetevt.hpp"
  10.  
  11. ValueSetEvent :: ValueSetEvent ( IEvent &event )
  12.   : IControlEvent( event )
  13.   {
  14.   }
  15.  
  16. ValueSet *ValueSetEvent :: valueSet ( ) const
  17.   {
  18.   return (ValueSet*)controlWindow();
  19.   }
  20.  
  21. unsigned long ValueSetEvent :: row ( ) const
  22.   {
  23.   return parameter2() & 0xffffU;
  24.   }
  25.  
  26. unsigned long ValueSetEvent :: column ( ) const
  27.   {
  28.   return parameter2() >> 16;
  29.   }
  30.  
  31. IPoint ValueSetEvent :: rowAndColumn ( ) const
  32.   {
  33.   return IPoint( column(), row() );
  34.   }
  35.