ui/wpf/UIwrapper/UIwrapper/window.cpp

Mon, 17 Jun 2024 21:20:58 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 17 Jun 2024 21:20:58 +0200
changeset 43
ef01d2c90128
parent 0
2483f517c562
permissions
-rw-r--r--

some minor toolbar adjustments, toolkit icons update



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

#include "window.h"

#using "UIcore.dll"

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

mercurial