基本版本

This commit is contained in:
2026-02-27 12:31:38 +08:00
commit 7ef53ce6cf
11 changed files with 967 additions and 0 deletions

26
main.cpp Normal file
View File

@@ -0,0 +1,26 @@
#include "mainframe.h"
class CWxNewProject : public wxApp
{
public:
virtual bool OnInit()
{
wxString title = wxString::Format(wxT("创建cmake工程 v1.0.0"));
auto* f = new MainFrame(title);
f->Show(true);
f->SetIcon(wxICON(IDI_ICON1));
#ifdef __WXMSW__
SetProcessDPIAware();
#endif
return true;
}
virtual int OnExit()
{
return wxApp::OnExit();
}
};
IMPLEMENT_APP(CWxNewProject);
DECLARE_APP(CWxNewProject);