All pastes #594900 Raw Edit

Anonymous

public text v1 · immutable
#594900 ·published 2007-06-29 05:11 UTC
rendered paste body
/// 
/// -- 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()
{ }