做网站都需要哪些信息/全球搜怎么样
有时程序执行某个过程很耗时,为了提示用户程序处于忙碌状态,可以将鼠标设置为转圈的忙碌状态:
{CWaitCursor wait; // display wait cursor. 设置为忙碌模式// do some lengthy processingSleep(1000);AfxMessageBox(_T("Process Complete")); //This changes the cursor.wait.Restore(); //Restore the Wait cursor. 继续变回忙碌模式Sleep(1000);// wait.~CWaitCursor(); //主动消除忙碌模式
}// destructor automatically removes the wait cursor. 出作用域后忙碌模式消除