home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / VISBUILD / RAPSHEET / SUSCNRMH.HPP < prev    next >
Text File  |  1995-05-12  |  3KB  |  69 lines

  1. #ifndef _SUSCNRMH_
  2. #define _SUSCNRMH_
  3. //****************************************************************************
  4. // ISuspectCnrMenuHandler Class - C++ Header File (suscnrmh.hpp)             *
  5. //                                                                           *
  6. // COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995 *
  7. //                                                                           *
  8. // DISCLAIMER OF WARRANTIES:                                                 *
  9. //   The following [enclosed] code is sample code created by IBM             *
  10. //   Corporation.  This sample code is not part of any standard IBM product  *
  11. //   and is provided to you solely for the purpose of assisting you in the   *
  12. //   development of your applications.  The code is provided "AS IS",        *
  13. //   without warranty of any kind.  IBM shall not be liable for any damages  *
  14. //   arising out of your use of the sample code, even if they have been      *
  15. //   advised of the possibility of such damages.                             *
  16. //****************************************************************************
  17. //NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
  18. //
  19.  
  20. #include <icnrmhdr.hpp>              // ICnrMenuHandler, parent class, which
  21.                                      // indirectly includes IMenuEvent.
  22.  
  23. #ifndef _IVBCNR_
  24. #include <ivbcnr.h>
  25. #endif
  26.  
  27. //forward class references
  28. class ISuspect;
  29. class IVSequence<ISuspect *>;
  30. class ISuspectCnrViewSuspectCnrCnrObj;
  31.  
  32. //**************************************************************************
  33. // Class:   ISuspectCnrMenuHandler
  34. //
  35. // Purpose: Provides popup menu support for a suspect container view.
  36. //
  37. //***************************************************************************
  38. class ISuspectCnrMenuHandler : public ICnrMenuHandler
  39. {
  40.  
  41. public:
  42.    ISuspectCnrMenuHandler(
  43.       IVBContainerControl< ISuspect *,
  44.                            IVSequence<ISuspect *>,
  45.                            ISuspectCnrViewSuspectCnrCnrObj >
  46.                            *aVBCnr,
  47.       IPopUpMenu * aSuspectCnrMenu,
  48.       IVSequence< ISuspect *> *);
  49.    virtual ~ISuspectCnrMenuHandler();     //destructor
  50.  
  51. protected:
  52.    Boolean makePopUpMenu(IMenuEvent& menuEvent);
  53.  
  54. private:
  55. /*---------------------  ENUMERATED TYPES  ------------------------
  56.  *-----------------------------------------------------------------*/
  57.    enum IPopupMenuType {none=-1, cnr, element};
  58.  
  59.    IVBContainerControl < ISuspect *, 
  60.                          IVSequence<ISuspect *>,
  61.                          ISuspectCnrViewSuspectCnrCnrObj > *iCnr;
  62.    IPopUpMenu * iPopupMenu;
  63.    IVSequence <ISuspect *> * iTargetCollection;
  64.    IPopupMenuType iCurrentMenu;
  65.  
  66. };   //ISuspectCnrMenuHandler
  67.  
  68. #endif
  69.