mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-09-22 14:55:05 +08:00
Fix GacUI_HelloWorlds (NOT READY)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user