To use the CWaitCursor class to show a wait cursor, an instance of the object is simply created. Destroying the object restores the normal cursor. However, the documentation states that although the lifetime of the object may span messages, the wait cursor is only guaranteed to remain on the screen for the duration of the currently processing message.
The purpose of this article is to describe a simple and neat method of allowing the wait cursor to persist across messages.
Take a look at this example:
A Persistent Wait Cursor[
^]