view src/main.cpp @ 2:45d4fd954c31 default tip

change layout.
author pyon@macmini
date Mon, 10 Jun 2019 22:17:33 +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;
}