Cross-Platform GUI Programming
with wxWidgets
Smart_FMf.qxd 6/10/05 1:52 PM Page i
B
RUCE
P
ERENS
’ O
PEN
S
OURCE
S
ERIES
http://www.phptr.com/perens
Java™ Application Development on Linux®
Carl Albing and Michael Schwarz
C++ GUI Programming with Qt 3
Jasmin Blanchette and Mark Summerfield
Managing Linux Systems with Webmin: System Administration and Module Development
Jamie Cameron
The Linux Book
David Elboth
Understanding the Linux Virtual Memory Manager
Mel Gorman
PHP 5 Power Programming
Andi Gutmans, Stig Bakken, and Derick Rethans
Linux® Quick Fix Notebook
Peter Harrison
Linux Desk Reference, Second Edition
Scott Hawkins
Implementing CIFS: The Common Internet File System
Christopher Hertel
Open Source Security Tools: A Practical Guide to Security Applications
Tony Howlett
Apache Jakarta CommonsReusable Java™ Components
Will Iverson
Embedded Software Development with eCos
Anthony Massa
Rapid Application Development with Mozilla
Nigel McFarlane
Subversion Version Control: Using the Subversion Version Control System in Development
Projects
William Nagel
Linux Assembly Language Programming
Bob Neveln
Intrusion Detection with SNORT: Advanced IDS Techniques Using SNORT, Apache, MySQL,
PHP, and ACID
Rafeeq Ur Rehman
Cross-Platform GUI Programming with wxWidgets
Julian Smart and Kevin Hock with Stefan Csomor
Samba-3 by Example: Practical Exercises to Successful Deployment
John H. Terpstra
The Official Samba-3 HOWTO and Reference Guide
John H. Terpstra and Jelmer R. Vernooij, Editors
Real World Linux Security, Second Edition
Bob Toxen
Smart_FMf.qxd 6/10/05 1:52 PM Page ii
Cross-Platform GUI Programming
with wxWidgets
Julian Smart and Kevin Hock
with Stefan Csomor
Upper Saddle River, NJ • Boston • Indianapolis • San Francisco
New York • Toronto • Montreal • London • Munich • Paris
Madrid • Capetown • Sydney • Tokyo • Singapore • Mexico City
Smart_FMf.qxd 6/10/05 1:52 PM Page iii
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and the publisher was aware of a trademark
claim, the designations have been printed with initial capital letters or in all capitals.
The authors and publisher have taken care in the preparation of this book, but make no expressed or
implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed
for incidental or consequential damages in connection with or arising out of the use of the information or
programs contained herein.
The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special
sales, which may include electronic versions and/or custom covers and content particular to your business,
training goals, marketing focus, and branding interests. For more information, please contact:
U. S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com
For sales outside the U. S., please contact:
International Sales
international@pearsoned.com
This Book Is Safari Enabled
The Safari Enabled icon on the cover of your favorite technology book means the book is
available through Safari Bookshelf. When you buy this book, you get free access to the
online edition for 45 days. Safari Bookshelf is an electronic reference library that lets you
easily search thousands of technical books, find code samples, download chapters, and
access technical information when ever and wherever you need it.
To gain 45-day Safari Enabled access to this book:
•Go to http://www.awprofessional.com/safarienabled
•Complete the brief registration form
•Enter the coupon code 33G2-XGSI-ZFYZ-D7IV-B9HE
If you have difficulty registering on Safari Bookshelf or accessing the online edition, please e-mail customer-
service@safaribooksonline.com.
Visit us on the Web: www.phptr.com
Library of Congress Catalog Number: 2005924108
Copyright © 2006 Pearson Education, Inc.
Printed in the United States of America.
This material may be distributed only subject to the terms and conditions set forth in the Open Publication
License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/).
ISBN 0-13-147381-6
Text printed in the United States on recycled paper at R.R. Donnelley & Sons in Crawfordsville, Indiana.
First printing, July 2005
Smart_FMf.qxd 6/10/05 1:52 PM Page iv
Smart_FMf.qxd 6/10/05 1:52 PM Page v