tagging release
[dasher.git] / Src / Win32 / Widgets / Menu.h
blobd6df58a2d6b11699d76a6df0a134a2825e5e086a
1 // Menu.h
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (c) 2002 Iain Murray, Inference Group, Cavendish, Cambridge.
6 //
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __Menu_h__
10 #define __Menu_h__
12 #include <map>
15 class CMenu {
16 public:
17 void SetStatus(UINT Command, bool Grayed, bool Checked);
18 bool GetCheck(UINT Command);
20 void SortOut(HMENU Menu);
21 private:
22 struct MenuOptions {
23 bool Grayed;
24 bool Checked;
26 std::map < UINT, MenuOptions > m_Items;
29 #endif /* #ifndef __Menu_h__ */