view main.cpp @ 1:254045a265e0 default tip

Fix Makefile.
author pyon@macmini
date Fri, 25 Apr 2014 06:02:21 +0900
parents 6235b9a84d53
children
line wrap: on
line source

// Filename   : main.cpp
// Last Change: 21-Apr-2014.
//
#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;

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

    return true;
}

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