This commit is contained in:
Zihan Chen
2019-01-16 02:46:30 -08:00
parent 07fc91c68e
commit a67fc2929a
+14 -1
View File
@@ -8,9 +8,22 @@ using namespace vl::stream;
using namespace vl::reflection::description;
using namespace demo;
/*
The code has to run before calling SetupWindowsDirect2DRenderer
But I am lazy and I don't want to create another GacUILite without WinMain
So I just do this
*/
class Initialize
{
public:
Initialize()
{
windows::SetWindowDefaultIcon(MAINICON);
}
} initialize;
void GuiMain()
{
windows::SetWindowDefaultIcon(MAINICON);
{
FileStream fileStream(L"../UIRes/WindowIcon.bin", FileStream::ReadOnly);
GetResourceManager()->LoadResourceOrPending(fileStream);