Fix GacUI_HelloWorlds (NOT READY)

This commit is contained in:
Zihan Chen
2017-08-26 01:13:07 -07:00
parent 781f7c4156
commit 5cf2fef359
31 changed files with 579 additions and 349 deletions
+29
View File
@@ -0,0 +1,29 @@
#define GAC_HEADER_USE_NAMESPACE
#include <GacUI.h>
#include <Skins\DarkSkin\DarkSkin.h>
#include <Windows.h>
class DefaultSkinPlugin : public Object, public IGuiPlugin
{
public:
GUI_PLUGIN_NAME(Custom_DefaultSkinPlugin)
{
GUI_PLUGIN_DEPEND(GacGen_DarkSkinResourceLoader);
}
void Load()override
{
RegisterTheme(L"DarkSkin", MakePtr<darkskin::Theme>());
}
void Unload()override
{
}
};
GUI_REGISTER_PLUGIN(DefaultSkinPlugin)
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int CmdShow)
{
return SetupWindowsDirect2DRenderer();
}