home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / imndihdr.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.4 KB  |  59 lines

  1. #ifndef _IMNDIHDR_
  2. #define _IMNDIHDR_
  3. /*******************************************************************************
  4. * FILE NAME: imndihdr.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IMenuDrawItemHandler                                                     *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #include <ihandler.hpp>
  19. #include <ibitflag.hpp>
  20. #include <imndievt.hpp>
  21. #include <ipoint.hpp>
  22.  
  23. #pragma pack(4)
  24.  
  25. class IMenuDrawItemHandler : public IHandler {
  26. typedef IHandler
  27.   Inherited;
  28. public:
  29. /*------------------------------- Constructors -------------------------------*/
  30.   IMenuDrawItemHandler ( );
  31. virtual
  32.  ~IMenuDrawItemHandler ( );
  33.  
  34. protected:
  35. /*---------------------------- Event Dispatching -----------------------------*/
  36. virtual Boolean
  37.   dispatchHandlerEvent ( IEvent& event );
  38.  
  39. /*------------------------------ Drawing Flags -------------------------------*/
  40. INESTEDBITFLAGCLASSDEF0(DrawFlag, IMenuDrawItemHandler);
  41. static const DrawFlag
  42.   IC_IMPORTU drewChecked,
  43.   IC_IMPORTU drewDisabled,
  44.   IC_IMPORTU drewSelected;
  45.  
  46. /*----------------------------- Event Processing -----------------------------*/
  47. virtual Boolean
  48.   setSize     ( IMenuDrawItemEvent& event,
  49.                 ISize&              newSize ),
  50.   draw        ( IMenuDrawItemEvent& event,
  51.                 DrawFlag&           flag ),
  52.   highlight   ( IMenuDrawItemEvent& event ),
  53.   unhighlight ( IMenuDrawItemEvent& event );
  54. }; // IMenuDrawItemHandler
  55.  
  56. #pragma pack()
  57.  
  58. #endif /* _IMNDIHDR_ */
  59.