怎样才能用WaitCursorBegin()函数! WaitCursorBegin()函数,在程序中那儿都可以用。::WaitCursorBegin();就可以了。或:theApp.WaitCursorBegin() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比较简单的方法是用CWaitCursor。如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了。 哪儿都可以,直接用就行了[::]WaitCursorBegin();[::]WaitCursorEnd(); 是哪都能用不过,可能等的时间要长一些,才看得到这个例子更简单::WaitCursorBegin();sleep(5000);//wait 5seconds::WaitCursorEnd(); BeginWaitCursor()EndWaitCursor():) 应该是:BeginWaitCursor();sleep(5000);//EndWaitCursor(); 求助OpenGL绘制点的问题 怎么才能把波形图画得更好看?请看下这幅图。 求一个api函数,要求在一个程序内获得另外一个程序(当前窗体)鼠标的光标值,或者是一个程序内获得另外一个程序(当前窗体)鼠标的光标是否有变化。 在对话框中加菜单的问题。 Timer的使用,请帮我分析原因,谢了! ADO问题,谢谢! 用向导制作一个文档/视图程序后,才写一句就报错,大家知道原因吗? 救救我吧! 有关VC调用surfer的问题 请教:如何让对话框的功能更完善,界面更个性化,谢谢 关于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();