home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ctlcpp.zip / NEWCTEVT.CPP < prev    next >
C/C++ Source or Header  |  1994-06-06  |  2KB  |  40 lines

  1. /***************************************************************/
  2. /* Filename: newctevt.cpp                                      */
  3. /*                                                             */
  4. /* Purpose: Definition od NewControlEvent class.               */
  5. /*                                                             */
  6. /* Program name: cppctl.exe     Title: C++ PM Control Test App */
  7. /* OS/2 Developer Magazine, Issue: Sept. '94, page             */
  8. /* Article title: Writing OS/2 PM Controls in C++              */
  9. /* Authors: Eric Snell and Lori Ruffing                        */
  10. /*                                                             */
  11. /* Description: This example shows how to implement an OS/2 PM */
  12. /*              control window in C++.                         */
  13. /*                                                             */
  14. /* Program Requirements: This example requires the IBM C Set++ */
  15. /*                       compiler and libraries.               */
  16. /***************************************************************/
  17.  
  18. #include "newctevt.hpp"
  19.  
  20. NewControlEvent::NewControlEvent(IEvent &evt)
  21.    : MControlEvent(evt)
  22.    {
  23.    }
  24.  
  25. NewControlEvent::~NewControlEvent()
  26.    {
  27.    }
  28.  
  29. //----------------------------------------------------------------------------
  30. // Method: NewControlEvent::mouseNumber
  31. //
  32. // Description: 'mouseNumber' returns the number of the mouse button that
  33. //              was clicked.
  34. //----------------------------------------------------------------------------
  35. IMouseClickEvent::MouseNumber NewControlEvent::mouseNumber() const
  36.    {
  37.    return IMouseClickEvent::MouseNumber(parameter1().number2());
  38.    }
  39.  
  40.