home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-12-20 | 879 b | 42 lines | [TEXT/CWIE] |
- ///////////////////////////////////////////////////////////////////////////////
- //
- // CPopupMenuTracker.h
- //
- //
-
- #ifndef __CPOPUPMENUTRACKER__
- #define __CPOPUPMENUTRACKER__
-
- #include "BDInterfaces.h"
-
- class CPopupMenuControl;
-
- class CPopupMenuTracker
- {
- public:
- CPopupMenuTracker( CPopupMenuControl * control,
- MenuHandle itsMenu,
- short currentItemNumber,
- short fontID,
- short fonstSize);
-
- CPopupMenuTracker( CPopupMenuControl * control,
- MenuHandle itsMenu,
- short currentItemNumber);
-
- ~CPopupMenuTracker(void);
-
- short TrackMouse(Point& theMouse);
- void GetCurrentItem(CMenuItem * menuItem);
- short GetCurrentItemNumber(void);
- char * GetCurrentItemText(void);
-
- private:
- CPopupMenuControl * mControl;
- MenuHandle mMenu;
- CMenuItem mCurrentItem;
- short mFontID;
- short mFontSize;
- };
-
- #endif // __CPOPUPMENUTRACKER__