用cwaitcursor定义的

解决方案 »

  1.   

    void AnotherLengthyFunction( )
    {
       CWaitCursor wait;   // display wait cursor   // do some lengthy processing
       Sleep(1000);   // The dialog box will normally change the cursor to
       // the standard arrow cursor.
       CFileDialog dlg(TRUE);
       dlg.DoModal();   // It is necessary to call Restore here in order
       // to change the cursor back to the wait cursor.
       wait.Restore();   // do some more lengthy processing
       Sleep(1000);   // destructor automatically removes the wait cursor
    }
      

  2.   

    void AnotherLengthyFunction( ) 

      CWaitCursor wait;  // display wait cursor 
    }
    结束时wait会析构.