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

  1. #ifndef _IPOPMENU_
  2. #define _IPOPMENU_
  3. /*******************************************************************************
  4. * FILE NAME: ipopmenu.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class:                                                  *
  8. *     IPopUpMenu                                                               *
  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 <imenu.hpp>
  19.  
  20. class IPoint;
  21. class IResourceId;
  22. class IWindow;
  23. class IPopUpMenuData;
  24.  
  25. #pragma pack(4)
  26.  
  27. class IPopUpMenu : public IMenu {
  28. typedef IMenu
  29.  Inherited;
  30. public:
  31. /*------------------------------- Constructors -------------------------------*/
  32.   IPopUpMenu ( IWindow*           owner,
  33.                unsigned long      menuWindowId,
  34.                const Style&       style = defaultStyle());
  35.  
  36.   IPopUpMenu ( const IResourceId& menuResId,
  37.                IWindow*           owner );
  38. virtual
  39.  ~IPopUpMenu ( );
  40.  
  41. /*-------------------------------- Visibility --------------------------------*/
  42. virtual IPopUpMenu
  43.  &show ( const IPoint& atLocation );
  44.  
  45.  
  46. protected:
  47. /*---------------------- Event-Handling Implementation -----------------------*/
  48.  
  49. private:
  50. /*------------------------------ Hidden Members ------------------------------*/
  51.   IPopUpMenu ( const IPopUpMenu& menu );
  52. IPopUpMenu
  53.  &operator=  ( const IPopUpMenu& menu );
  54. IPopUpMenu
  55.  &show       ( Boolean           showMenu = true );
  56.  
  57. /*--------------------------------- Private ----------------------------------*/
  58. IPopUpMenuData
  59.  *fPopUpMenuData;
  60. }; // IPopUpMenu
  61.  
  62. #pragma pack()
  63.  
  64.   #include <ipopmenu.inl>
  65.  
  66. #endif  /* _IPOPMENU_ */
  67.