ui/wpf/UIwrapper/UIwrapper/menu.cpp

changeset 81
5eb765a7a793
child 82
0cdb8089a29f
equal deleted inserted replaced
80:40be5c189e2e 81:5eb765a7a793
1
2 #include "stdafx.h"
3 #include <stdio.h>
4
5 #include "menu.h"
6
7 #using "UIcore.dll"
8
9 UI_EXPORT void __stdcall UImenu(char *label) {
10 UI::Application::GetInstance()->AppMenu->AddMenu(gcnew String(label));
11 }
12
13
14 UI_EXPORT void __stdcall UImenuitem(char *label, UIcallback f, void *userdata) {
15 EventWrapper ^e = gcnew EventWrapper(f, userdata);
16 UI::Application::GetInstance()->AppMenu->AddMenuItem(gcnew String(label), e->GetAction());
17 }

mercurial