24 lines
421 B
C++
24 lines
421 B
C++
#include "mainframe.h"
|
|
#include <memory>
|
|
|
|
class CMainForm : public wxApp
|
|
{
|
|
public:
|
|
bool OnInit() override;
|
|
|
|
private:
|
|
CMainFrame* frmae_{};
|
|
};
|
|
|
|
IMPLEMENT_APP(CMainForm);
|
|
DECLARE_APP(CMainForm);
|
|
|
|
bool CMainForm::OnInit()
|
|
{
|
|
SetProcessDPIAware();
|
|
// 这里也是自动释放的,不需要智能指针或者手动释放。
|
|
frmae_ = new CMainFrame(_("GTransm"));
|
|
frmae_->Show(true);
|
|
return true;
|
|
}
|