home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Sample Controls / Menus / CPopupMenuTracker.h < prev    next >
Encoding:
Text File  |  1996-12-20  |  879 b   |  42 lines  |  [TEXT/CWIE]

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. //    CPopupMenuTracker.h
  4. //
  5. //
  6.  
  7. #ifndef __CPOPUPMENUTRACKER__
  8. #define __CPOPUPMENUTRACKER__
  9.  
  10. #include "BDInterfaces.h"
  11.  
  12. class CPopupMenuControl;
  13.  
  14. class CPopupMenuTracker
  15. {
  16. public:
  17.     CPopupMenuTracker(    CPopupMenuControl *    control,
  18.                         MenuHandle            itsMenu,
  19.                         short                currentItemNumber,
  20.                         short                fontID,
  21.                         short                fonstSize);
  22.  
  23.     CPopupMenuTracker(    CPopupMenuControl *    control,
  24.                         MenuHandle            itsMenu,
  25.                         short                currentItemNumber);
  26.  
  27.     ~CPopupMenuTracker(void);
  28.     
  29.     short TrackMouse(Point& theMouse);
  30.     void GetCurrentItem(CMenuItem * menuItem);
  31.     short GetCurrentItemNumber(void);
  32.     char * GetCurrentItemText(void);
  33.     
  34. private:
  35.     CPopupMenuControl *    mControl;
  36.     MenuHandle            mMenu;
  37.     CMenuItem            mCurrentItem;
  38.     short                mFontID;
  39.     short                mFontSize;
  40. };
  41.  
  42. #endif // __CPOPUPMENUTRACKER__