O'Reilly logo

Cross-Platform GUI Programming with wxWidgets by Stefan Csomor, Kevin Hock, Julian Smart

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required