Mercurial > mercurial > hgweb_madnm.cgi
view src/main.cpp @ 1:f40a65687079
small fix.
author | pyon@macmini |
---|---|
date | Mon, 10 Jun 2019 05:56:36 +0900 |
parents | 2f5584f0d127 |
children |
line wrap: on
line source
// Filename : main.cpp // Last Change: 2019-06-05 水 12:53:55. // #include "id.h" #include "main.h" #include "appconf.h" #include "util.h" #include "mainframe.h" IMPLEMENT_APP( MyApp ) IMPLEMENT_CLASS( MyApp, wxApp ) MyApp::MyApp() { } MyApp::~MyApp() { } bool MyApp::OnInit() { if ( !wxApp::OnInit() ) return false; wxImage::AddHandler( new wxJPEGHandler ); wxImage::AddHandler( new wxPNGHandler ); AppConf appconf; wxRect rect = appconf.LoadRect(); // Main Window MainFrame *mainframe = new MainFrame( NULL, wxID_ANY, "MadnM", wxPoint( rect.x, rect.y ), rect.GetSize(), wxDEFAULT_FRAME_STYLE ); mainframe->Show( true ); mainframe->Raise(); return true; } int MyApp::OnExit() { return 0; }