mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-02-07 21:22:31 +08:00
GacUI_Controls\QueryService
This commit is contained in:
16
Tutorial/GacUI_Controls/QueryService/Main.cpp
Normal file
16
Tutorial/GacUI_Controls/QueryService/Main.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#define GAC_HEADER_USE_NAMESPACE
|
||||
#include "UI/Source/Demo.h"
|
||||
|
||||
using namespace vl::stream;
|
||||
|
||||
void GuiMain()
|
||||
{
|
||||
{
|
||||
FileStream fileStream(L"../UIRes/QueryService.bin", FileStream::ReadOnly);
|
||||
auto resource = GuiResource::LoadPrecompiledBinary(fileStream);
|
||||
GetResourceManager()->SetResource(resource);
|
||||
}
|
||||
demo::MainWindow window;
|
||||
window.MoveToScreenCenter();
|
||||
GetApplication()->Run(&window);
|
||||
}
|
||||
Reference in New Issue
Block a user