previous | start | next

## Frames

- The frame is initialized in the constructor.

  >     BasicApp::BasicApp()
  >     {
  >        frame = new wxFrame(NULL, -1,
  >           "My First GUI Program");
  >     }

- The parameters indicate the frame has no parent window, a default window ID, and is called "My First GUI Program"
- In the `OnInit` functions, you show the frame and return true to indicate that the initialization was successful.

  >     bool BasicApp::OnInit()
  >     {
  >        frame->Show(true);
  >        return true;
  >     }

previous | start | next