Cross-Platform GUI Programming with wxWidgets
|
You can find a working example of many of the features we have described in samples/thread in your wxWidgets distribution (see Figure 17-1). In this example, you can start, stop, pause, and resume threads. It demonstrates a "worker thread" that periodically posts events to the main thread with wxPostEvent, indicated by a progress dialog that cancels the thread when it reaches the end of its range. Figure 17-1. wxWidgets Threads Sample
|
|