The main idea of this solution is to provide feedbacks, of when a task start and stop running, to gui components used to notify the user that a operation is running.
Moreover, a wait dialog is provided inside the solution to solve as a sample. The dialog have timers to change the icon to WAIT_CURSOR, show the dialog and sets the cancel button visible.
The objective of share this code with the community, is to enlarge the array of use cases, find and solve thread bugs and race problems... and of course, provide a free and easy solution to wait components feedback.
This time, the code is in English but the entire documentation in Portuguese-Brazil (pt_BR). So, let me know if a translation to English is required, that I'll try to provide.
Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.