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

  1. #ifndef _NEWCTEVT_
  2.    #define _NEWCTEVT_
  3. /***************************************************************/
  4. /* Filename: newctevt.hpp                                      */
  5. /*                                                             */
  6. /* Purpose: Declaration of NewControlEvent class.              */
  7. /*                                                             */
  8. /* Program name: cppctl.exe     Title: C++ PM Control Test App */
  9. /* OS/2 Developer Magazine, Issue: Sept. '94, page             */
  10. /* Article title: Writing OS/2 PM Controls in C++              */
  11. /* Authors: Eric Snell and Lori Ruffing                        */
  12. /*                                                             */
  13. /* Description: This example shows how to implement an OS/2 PM */
  14. /*              control window in C++.                         */
  15. /*                                                             */
  16. /* Program Requirements: This example requires the IBM C Set++ */
  17. /*                       compiler and libraries.               */
  18. /***************************************************************/
  19.  
  20. #ifndef _IMCEVT_
  21.    #include "imcevt.hpp"
  22. #endif
  23.  
  24. #ifndef _MCTLEVT_
  25.    #include "mctlevt.hpp"
  26. #endif
  27.  
  28. // Align classes on 4 byte boundary
  29. #pragma pack(4)
  30.  
  31. class NewControlEvent : public MControlEvent
  32.    {
  33.    public:
  34.       NewControlEvent(IEvent &evt);
  35.       virtual ~NewControlEvent();
  36.  
  37.       IMouseClickEvent::MouseNumber mouseNumber() const;
  38.  
  39.    };
  40.  
  41. // Resume compiler default packing
  42. #pragma pack()
  43.  
  44. #endif //#ifndef _NEWCTEVT_
  45.