Anonymous
public text v1 · immutable///
/// -- This is MainFrame.h
///
#include <wx/wx.h>
class MainFrame : public wxFrame {
public:
MainFrame();
~MainFrame();
};
///
/// -- This is Main.cpp
///
#include "MainFrame.h"
class Main : public wxApp {
private:
virtual bool OnInit();
};
// equivalent to the standard main()
IMPLEMENT_APP(Main)
bool Main::OnInit() {
MainFrame *win = new MainFrame();
}
///
/// -- This is MainFrame.cpp
///
#include "MainFrame.h"
MainFrame::MainFrame()
{ }