view main.cpp @ 5:cb33c4b9ea23 default tip

small fix.
author pyon@macmini
date Wed, 06 Jun 2018 23:01:09 +0900
parents 3fadcf124bb4
children
line wrap: on
line source

// Filename   : main.cpp
// Last Change: 2018-06-05 Tue 22:08:26.
//
#include "main.h"
#include "myframe.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  );
    wxImage::AddHandler( new wxXPMHandler  );
    wxImage::AddHandler( new wxGIFHandler  );
    wxImage::AddHandler( new wxICOHandler  );
    wxImage::AddHandler( new wxBMPHandler  );
    wxImage::AddHandler( new wxTIFFHandler );

    long style = wxDEFAULT_FRAME_STYLE;
    style = style & ~( wxMAXIMIZE_BOX );
    MyFrame *mainframe = new MyFrame( NULL, wxID_ANY, wxT("IMCV - ImageConverter -"), wxDefaultPosition, wxSize( 700, 200 ), style );
    mainframe->Show(true);

    return true;
}

int MyApp::OnExit()
{
    return 0;
}