// $Id: wxapp.cpp,v 1.2 2004/06/18 22:05:58 philip Exp $ #include "stdafx.h" #include "wxframe.h" #include "wxconfig.h" class FontBuilderApp : public wxApp { public: virtual bool OnInit(); virtual int OnExit(); }; IMPLEMENT_APP(FontBuilderApp) bool FontBuilderApp::OnInit() { ConfigInit(); MainFrame *frame = new MainFrame(wxString::Format(wxT("Font Builder %s"), (const wchar_t*)version), wxDefaultPosition, wxSize(640,480)); frame->SetIcon(wxIcon(wxT("IDI_ICON1"))); frame->Show(true); SetTopWindow(frame); return true; } int FontBuilderApp::OnExit() { ConfigDestroy(); return 0; }