This commit is contained in:
dickelbeck 2007-09-11 04:10:18 +00:00
parent 9d1c7bc0c5
commit 32a002b520
1 changed files with 2 additions and 2 deletions

View File

@ -55,12 +55,12 @@
#define ADD_MENUITEM(menu, id, text, icon) do {\ #define ADD_MENUITEM(menu, id, text, icon) do {\
wxMenuItem * l_item;\ wxMenuItem * l_item;\
l_item = new wxMenuItem(menu, id, text);\ l_item = new wxMenuItem(menu, id, text);\
l_item->SetBitmap(icon); menu->Append(l_item);} while(0) l_item->SetBitmap(icon); (menu)->Append(l_item);} while(0)
#define ADD_MENUITEM_WITH_HELP(menu, id, text, help, icon) do {\ #define ADD_MENUITEM_WITH_HELP(menu, id, text, help, icon) do {\
wxMenuItem * l_item;\ wxMenuItem * l_item;\
l_item = new wxMenuItem(menu, id, text, help);\ l_item = new wxMenuItem(menu, id, text, help);\
l_item->SetBitmap(icon); menu->Append(l_item);} while(0) l_item->SetBitmap(icon); (menu)->Append(l_item);} while(0)
#ifdef __WINDOWS__ #ifdef __WINDOWS__
#define ADD_MENUITEM_WITH_SUBMENU(menu, submenu, id, text, icon) do {\ #define ADD_MENUITEM_WITH_SUBMENU(menu, submenu, id, text, icon) do {\