Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Menu.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 #ifndef MENU_H
00006 #define MENU_H
00007 
00008 #include "MenuItem.h"
00009 
00010 namespace wkgl {
00011 
00012 //#define MENU_APPEND 0xFFFFFF
00013 
00017 struct MENUITEM
00018 {
00019   UINT command;     
00020   MenuItem* item; 
00021 };
00022 
00033 class Menu : public MenuItem, public CallBack
00034 {
00035   protected:
00039     static std::vector <MENUITEM*> reg_menu_items;
00040 
00044     std::vector <MenuItem*> child_items;
00045 
00046   public:
00050     Menu( const char* label );
00051 
00054     virtual ~Menu();
00055 
00059     virtual void append( MenuItem* mitem );
00060 
00063     virtual BOOL callBack(Component* com, UINT message, 
00064                           WPARAM wParam, LPARAM lParam);
00065     
00069     virtual BOOL create( MenuItem *parent );
00070 };
00071 }
00072 #endif

Generated on Tue Apr 29 03:18:49 2003 for GuiLib by doxygen1.2.18