ui/wpf/UIwrapper/UIwrapper/window.cpp

Sat, 14 Feb 2015 13:26:00 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 14 Feb 2015 13:26:00 +0100
changeset 88
04c81be1c5a0
parent 83
a38aec91bd66
child 135
b9dc9cdfa23a
permissions
-rw-r--r--

added textarea (WPF)



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

#include "window.h"

#using "UIcore.dll"

UI_EXPORT void* __stdcall UIwindow(char *title, void *uiobj) {
	UI::MainWindow ^window = UI::MainWindow::CreateMainWindow(gcnew String(title), IntPtr(uiobj));
	gcroot<UI::MainWindow^> *ptr = new gcroot<UI::MainWindow^>();
	*ptr = window;
	return ptr;
}

mercurial