#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
class MyApp : public wxApp{
public:
virtual bool OnInit();
};
class MyTest: public wxFrame {
public:
MyTest(const wxString& title, const wxPoint& pos, const wxSize& size,
long style = wxDEFAULT_FRAME_STYLE);
~MyTest(){}
private:
};
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit(){
MyTest *frame = new MyTest(_T("MyTest"), wxPoint(100, 100), wxSize(500, 500));
frame->CreateStatusBar();
frame->SetStatusText(wxNow());
frame->Show(true);
return TRUE;
}
MyTest::MyTest(const wxString& title, const wxPoint& pos, const wxSize& size, long style)
: wxFrame(NULL, -1, title, pos, size, style){
};
/* PS: go to http://home.tiscali.be/franky.braem17/wxwindows.htm, ang get wxTutorial.zip & wxTutorial.pdf */ |