BeginWaitCursor(); // display the hourglass cursor
// do some lengthy processing
Sleep(3000);
EndWaitCursor(); // remove the hourglass cursor
strangely:
Note, in my vc++6.0, when only apply BeginWaitCursor() in a subroutine; useless, nothing change,