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

  1. #ifndef _IMENUEVT_
  2.   #define _IMENUEVT_
  3. /******************************************************************************
  4. * FILE NAME: imenuevt.hpp                                                     *
  5. *                                                                             *
  6. * DESCRIPTION:                                                                *
  7. *    Declaration of the class:                                                *
  8. *      IMenuEvent                                                             *
  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 <ievent.hpp>
  19.  
  20. class IPoint;
  21. class IMenuItem;
  22. class IMenuHandler;
  23.  
  24. #pragma pack(4)
  25.  
  26. class IMenuEvent  : public IEvent {
  27. typedef IEvent
  28.   Inherited;
  29. public:
  30. /*------------------------------- Constructors -------------------------------*/
  31.   IMenuEvent (IEvent& event);
  32. virtual
  33.  ~IMenuEvent ( );
  34.  
  35. /*---------------------------- Event Information -----------------------------*/
  36. unsigned long
  37.   menuItemId    ( ) const;
  38.  
  39. IMenuItem
  40.   menuItem      ( ) const;
  41.  
  42. IPoint
  43.   mousePosition ( ) const;
  44.  
  45. private:
  46. friend IMenuHandler;
  47. void
  48.  *fPrevMenuParent;
  49. };
  50.  
  51. #pragma pack()
  52.  
  53. #endif /* IMENUEVT */
  54.