WaitCursorBegin()函数,在程序中那儿都可以用。::WaitCursorBegin();就可以了。
或:theApp.WaitCursorBegin()
或:theApp.WaitCursorBegin()
解决方案 »
- 网络编程问题
- 关于VC6编译的问题!
- 我写了一个全局钩子(在DLL中),用EXE调用DLL时很正常,但写了一个服务调用DLL,钩子过程函数就不起作用了?
- 请高手们指点一下什么叫“匈牙利命名法”以及他的规则。
- 怎样在基类中调用它的继承类中的函数?
- 请问如何实现一个对话框程序可以用鼠标拖动改变其大小:)
- c++/MFC 数据库访问 如何添加光标锁定~~~高手进来看看 帮忙 急~~~
- VC哪个函数是将读取的数据写入excel表中
- 为什么我提的问题都没人看?(偶太没人缘了:(~~~~~~~
- 请问哪个站点介绍OpenGL编程或有相关资料?十分感谢。[email protected]
- 关于CJ60Libd问题
- 类的成员函数能不能单独作为一个线程执行?
如MSDN中的例子:
BOOL CMyWnd::SomeLengthyProcess()
{
CWaitCursor wait;
//Do the lengthProcessing. MessageBox("Some result"); //This changes the cursor.
wait.Restore(); //Restore the Wait cursor.
//Continue Processing. //The destructor changes the cursor back to Regular cursor.
return TRUE;
}这样就不需要调用EndWaitCursor了。
[::]WaitCursorEnd();
不过,可能等的时间要长一些,才看得到
这个例子更简单
::WaitCursorBegin();
sleep(5000);//wait 5seconds
::WaitCursorEnd();
EndWaitCursor()
:)
BeginWaitCursor();
sleep(5000);//
EndWaitCursor();