Initial
This commit is contained in:
46
statbar/HOLD/POPUP.HPP
Normal file
46
statbar/HOLD/POPUP.HPP
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef _STATBAR_POPUPMENU_HPP_
|
||||
#define _STATBAR_POPUPMENU_HPP_
|
||||
#ifndef _COMMON_PUREMENU_HPP_
|
||||
#include <common/puremenu.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_MENUITEM_HPP_
|
||||
#include <common/menuitem.hpp>
|
||||
#endif
|
||||
#ifndef _COMMON_PUREVECTOR_HPP_
|
||||
#include <common/pvector.hpp>
|
||||
#endif
|
||||
|
||||
class PopUpMenu : public PureMenu
|
||||
{
|
||||
public:
|
||||
PopUpMenu(void);
|
||||
PopUpMenu(const PureMenu &topLevelMenu);
|
||||
~PopUpMenu();
|
||||
String menuLabel(void)const;
|
||||
void menuLabel(String menuLabel);
|
||||
PopUpMenu &operator=(const PureMenu &somePureMenu);
|
||||
PopUpMenu &operator=(HMENU hMenu);
|
||||
WORD operator==(const PopUpMenu &somePopUpMenu)const;
|
||||
MenuItem &operator[](long itemIndex);
|
||||
long size(void)const;
|
||||
void size(long newSize);
|
||||
private:
|
||||
String mMenuLabel;
|
||||
MenuItem *mlpMenuItem;
|
||||
WORD mSize;
|
||||
};
|
||||
|
||||
inline
|
||||
MenuItem &PopUpMenu::operator[](long itemIndex)
|
||||
{
|
||||
assert(0!=mlpMenuItem);
|
||||
return mlpMenuItem[itemIndex];
|
||||
}
|
||||
|
||||
inline
|
||||
long PopUpMenu::size(void)const
|
||||
{
|
||||
return mSize;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user