Files
GacUI/Tutorial/GacUI_ControlTemplate/BlackSkin/Main.cpp
T
Zihan Chen 6d7eff927d ...
2018-07-01 14:59:11 -07:00

27 lines
886 B
C++

#include "UI/FullControlTest/Source/Demo.h"
using namespace vl;
using namespace vl::collections;
using namespace vl::stream;
using namespace vl::reflection::description;
using namespace vl::presentation;
using namespace vl::presentation::templates;
using namespace vl::presentation::elements;
using namespace vl::presentation::controls;
#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
void GuiMain()
{
{
FileStream fileStream(L"../UIRes/BlackSkin.bin", FileStream::ReadOnly);
auto resource = GuiResource::LoadPrecompiledBinary(fileStream);
GetResourceManager()->SetResource(resource);
}
{
demo::MainWindow window;
window.ForceCalculateSizeImmediately();
window.MoveToScreenCenter();
GetApplication()->Run(&window);
}
}