+You may also want to call wxTheApp->Yield() to refresh the window
+periodically (in case it had been obscured by other windows, for
+example) like this:
+
+\begin{verbatim}
+ wxWindowDisabler disableAll;
+
+ wxBusyInfo wait("Please wait, working...");
+
+ for (int i = 0; i < 100000; i++)
+ {
+ DoACalculation();
+
+ if ( !(i % 1000) )
+ wxTheApp->Yield();
+ }
+\end{verbatim}
+
+but take care to not cause undesirable reentrancies when doing it (see
+\helpref{wxApp::Yield()}{wxappyield} for more details). The simplest way to do
+it is to use \helpref{wxWindowDisabler}{wxwindowdisabler} class as illustrated
+in the above example.
+