void f() { CWaitCursor waitCursor;// create and display the wait cursor. //... do something long. // at the end of the function the waitCursor will be automatically destroyed and the previous cursor will be restored. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)