view src/main.cpp @ 0:00c5161d67b8 default tip

first release.
author pyon@macmini
date Tue, 29 Oct 2013 19:23:03 +0900
parents
children
line wrap: on
line source

// Filename   : main.cpp
// Last Change: 29-Oct-2013.
//
#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;

    MyFrame *mainframe = new MyFrame( NULL, wxID_ANY, wxT("RenRen"), wxDefaultPosition, wxSize( 280, 140 ), wxCAPTION|wxCLOSE_BOX );
    mainframe->Show( true );
    mainframe->InitControl();

    return true;
}

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