| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 
 |  
/**********/
/*basic.cpp*/
/*********/
 
#include <wx/wx.h>
#include "basic.h"
#include <wx/msw/wx.rc>
 
 
 
using namespace std;
 
IMPLEMENT_APP(BasicApplication)
 
bool BasicApplication::OnInit()
{
	BasicFrame *frame = new BasicFrame("Basic", 50, 50, 450, 300);
	frame->Show(TRUE);
	SetTopWindow(frame);
	return TRUE;
}
 
BasicFrame::BasicFrame(const wxChar *title, int xpos, int ypos, int width, int height): 
					wxFrame((wxFrame *)NULL, -1, title, wxPoint(xpos, ypos), wxSize(width, height))
{
}
 
BasicFrame::~BasicFrame()
{
} | 
Partager