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

  1. #ifndef _NEWCTHDR_
  2.    #define _NEWCTHDR_
  3. /***************************************************************/
  4. /* Filename: newcthdr.hpp                                      */
  5. /*                                                             */
  6. /* Purpose: Decalaration of teh NewControlHandler 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 _IHANDLER_
  21.    #include <ihandler.hpp>
  22. #endif
  23.  
  24. #ifndef _NEWCTEVT_
  25.    #include "newctevt.hpp"
  26. #endif
  27.  
  28. // Align classes on 4 byte boundary
  29. #pragma pack(4)
  30.  
  31. class NewControlHandler : public IHandler
  32.    {
  33.    public:
  34.       NewControlHandler();
  35.       virtual ~NewControlHandler();
  36.  
  37.    protected:
  38.       virtual Boolean dispatchHandlerEvent(IEvent& evt);
  39.       virtual Boolean button1Click(NewControlEvent& evt);
  40.       virtual Boolean button2Click(NewControlEvent& evt);
  41.    };
  42.  
  43. // Resume compiler default packing
  44. #pragma pack()
  45.  
  46. #endif //#ifndef _NEWCTHDR_
  47.  
  48.