mirror of
https://github.com/duilib/duilib.git
synced 2026-10-16 21:51:33 +08:00
467cab8148
Duilib暂不会有新特性增加,但已经准备一段时间修改代码目录管理结构,重构Demo 闲置半年多未更新一方面忙于生计,也源于提高内功 感谢Duilib原作者同意迁移SVN官方地址,便于社区维护 最后特别感谢【Duilib官方交流群3】活跃开发者们的帮助指导,为Duilib的重构提供了很多帮助,也为我个人成长提供指导
33 lines
825 B
C++
33 lines
825 B
C++
// FileTree.cpp : 定义应用程序的入口点。
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "FileTree.h"
|
|
#include "MainDialog.h"
|
|
|
|
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR /*lpCmdLine*/, int nCmdShow)
|
|
|
|
{
|
|
|
|
CPaintManagerUI::SetInstance(hInstance);
|
|
CPaintManagerUI::SetResourcePath(CPaintManagerUI::GetInstancePath() + _T("\\FileTree\\"));
|
|
//CPaintManagerUI::SetResourceZip(_T("Control.zip"),true);
|
|
|
|
HRESULT Hr = ::CoInitialize(NULL);
|
|
if( FAILED(Hr) ) return 0;
|
|
|
|
MainDialog* pFrame = new MainDialog();
|
|
if( pFrame == NULL )
|
|
return 0;
|
|
|
|
pFrame->Create(NULL, _T("TokenControl"),
|
|
UI_WNDSTYLE_FRAME,
|
|
UI_WNDSTYLE_EX_FRAME, 0, 0, 300, 500);
|
|
|
|
pFrame->CenterWindow();
|
|
::ShowWindow(*pFrame, SW_SHOW);
|
|
CPaintManagerUI::MessageLoop();
|
|
|
|
::CoUninitialize();
|
|
return 0;
|
|
} |