ui/wpf/UIwrapper/UIwrapper/window.cpp

Mon, 12 Feb 2024 17:32:47 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 12 Feb 2024 17:32:47 +0100
branch
newapi
changeset 256
8874a68bafb0
parent 135
b9dc9cdfa23a
permissions
-rw-r--r--

add save file dialog (WinUI3)



#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