mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-18 01:44:28 +08:00
...
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user