Chapter 2 Getting Started

In this chapter, we’ll get a feel for the structure of a simple wxWidgets program, using a tiny sample. We’ll look at where and how a wxWidgets application starts and ends, how to show the main window, and how to react to commands from the user. Following the wxWidgets philosophy of keeping things nice and simple, that’s all we’re going to cover in this chapter. You may also want to refer to Appendix A, “Installing wxWidgets.”

A Small wxWidgets Sample

Figure 2-1 shows what our sample looks like under Windows.

Figure 2-1 Minimal sample under Windows

Minimal sample under Windows

The minimal wxWidgets application shows a main window ...

Get Cross-Platform GUI Programming with wxWidgets now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.