26 lines
492 B
C++
26 lines
492 B
C++
#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); |