gtransm/gui/main.cxx

23 lines
395 B
C++
Raw Normal View History

2025-04-01 16:51:30 +08:00
#include "mainframe.h"
2025-04-03 10:23:46 +08:00
#include <memory>
2025-04-01 16:51:30 +08:00
2025-04-03 10:23:46 +08:00
class CMainForm : public wxApp
{
public:
bool OnInit() override;
private:
CMainFrame* frmae_{};
};
IMPLEMENT_APP(CMainForm);
DECLARE_APP(CMainForm);
bool CMainForm::OnInit()
{
// 这里也是自动释放的,不需要智能指针或者手动释放。
frmae_ = new CMainFrame(_("GTransm"));
frmae_->Show(true);
return true;
}