ui/wpf/UIwrapper/UIwrapper/menu.cpp

Fri, 11 Dec 2020 18:32:54 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 11 Dec 2020 18:32:54 +0100
changeset 4
d8e8f34e65ee
parent 0
804d8803eade
permissions
-rw-r--r--

add sqlite dependency


#include "stdafx.h"
#include <stdio.h>

#include "menu.h"

#using "UIcore.dll"

UI_EXPORT void __stdcall UImenu(char *label) {
	UI::Application::GetInstance()->Menu->AddMenu(gcnew String(label));
}

UI_EXPORT void __stdcall UIsubmenu(char *label) {
	UI::Application::GetInstance()->Menu->AddSubMenu(gcnew String(label));
}

UI_EXPORT void __stdcall UIsubmenu_end() {
	UI::Application::GetInstance()->Menu->EndSubMenu();
}


UI_EXPORT void __stdcall UImenuitem(char *label, UIcallback f, void *eventdata) {
	ObjEventWrapper ^e = gcnew ObjEventWrapper(f, eventdata);
	UI::Application::GetInstance()->Menu->AddMenuItem(gcnew String(label), e->GetAction());
}

mercurial