1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "main.h" #include "dialog.h" IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { wxImageHandler * pngLoader = new wxPNGHandler(); wxImage::AddHandler(pngLoader); Dialog *d = new Dialog((wxWindow *)NULL); d->Show(true); return true; }