基本版本
This commit is contained in:
26
main.cpp
Normal file
26
main.cpp
Normal 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);
|
||||
Reference in New Issue
Block a user