wxMahjong/App.cpp

16 lines
247 B
C++

#include "App.h"
#include "MainFrame.h"
wxIMPLEMENT_APP(MyApp);
bool MyApp::OnInit()
{
wxImage::AddHandler(new wxPNGHandler());
MainFrame *frame = new MainFrame();
frame->Show(true);
SetTopWindow(frame);
return true;
}