01: #include <wx/wx.h>
02: 
03: /**
04:    A basic application that shows an empty frame.
05: */
06: class BasicApp : public wxApp
07: {
08: public:
09:    /**
10:       Constructs the frame.
11:    */
12:    BasicApp();
13:    /**
14:       Shows the frame.
15:       @return true
16:    */
17:    virtual bool OnInit();
18: private:
19:    wxFrame* frame;
20: };
21: 
22: DECLARE_APP(BasicApp)
23: 
24: IMPLEMENT_APP(BasicApp)
25: 
26: BasicApp::BasicApp()
27: {
28:    frame = new wxFrame(NULL, -1, "My First GUI Program");
29: }
30: 
31: bool BasicApp::OnInit()
32: {
33:    frame->Show(true);
34:    return true;
35: }
36: