Contents Up Previous Next

Creating a main window

Every wxWindows must have a frame which is the main window (in C++, returned from the wxApp::OnInit function).

The first frame you create is taken to be this main window. Choose Edit: New frame or click on the frame tool on the palette, and then on the object editor.

You can size and position this frame using the representation on the object editor (try to resist the temptation to edit the real windows directly!). See Using the object editor for further details.