??

解决方案 »

  1.   

    // The following example illustrates the most common case
    // of displaying the wait cursor during some lengthy
    // processing.void LengthyFunction( )
    {
       // perhaps you display a dialog box before displaying a
       // wait cursor   CWaitCursor wait;  // display wait cursor   // do some lengthy processing}  // destructor automatically removes the wait cursor// This example shows using a CWaitCursor object inside a block
    // so the wait cursor is displayed only while the program is
    // performing a lengthy operation.void ConditionalFunction( )
    {
       if ( SomeCondition )
       {
          CWaitCursor wait;  // display wait cursor in this block only      // do some lengthy processing   }  // at this point, the destructor removes the wait cursor
       else
       {
          // no wait cursor--only quick processing
       }
    }
      

  2.   

    如果是WIN2000.首先到系统目录下的\WINNT\CURSORS\ 目录copy手型光标文件hnwse.cur到工程目录\res中。
    在资源管理器resouceview导入资源hnwse.cur。将其重定义ID为IDC_HANDS。//SetCursor(::LoadCursor(::AfxGetInstanceHandle(),MAKEINTRESOURCE(IDC_HANDS)));
    SetCursor(AfxGetApp()->LoadCursor(IDC_HANDS));
    //Sleep(1000);
    //doing something
    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));