如何让鼠标变成沙漏状
解决方案 »
- Clistctrl如何禁止相应键盘消息呢
- 在线等,跪求COM本质论的配套原码!
- VC6下一般采用什么开发技术实现报表?
- 请问怎样加载一个HTML文件到IHTMLdocument2 接口
- 学习vc编界面的时候碰到如下这样一个问题,书上好象讲的不详细,请大虾们指教
- 高分求教:CWindowImpl继承产生的Edit控件为什么不接收中文?
- VC++有真正的简体中文版吗?(官方版)
- 在VC里开发分布式数据库,该怎样来设直客户机与服务器的环境?为谢。
- 如何使用CreateWindow()函数,前面问过的,但不能回复了,再问一次!
- 响应函数的问题
- 谁能给我一个socket通信的dll程序的详细例子(顶者有分)
- 如何得到上网成功与否的标志?
{
BeginWaitCursor(); // display the hourglass cursor // do some lengthy processing EndWaitCursor(); // remove the hourglass cursor
}// The next example illustrates RestoreWaitCursor.
void CMyView::OnSomeCommand()
{
BeginWaitCursor(); // display the hourglass cursor // do some lengthy processing // The dialog box will normally change the cursor to
// the standard arrow cursor, and leave the cursor in
// as the standard arrow cursor when the dialog box is
// closed.
CMyDialog dlg;
dlg.DoModal(); // It is necessary to call RestoreWaitCursor here in order
// to change the cursor back to the hourglass cursor.
RestoreWaitCursor(); // do some more lengthy processing EndWaitCursor(); // remove the hourglass cursor
}// In the above example, the dialog was clearly invoked between
// the pair of calls to BeginWaitCursor and EndWaitCursor.
// Sometimes it may not be clear whether the dialog is invoked
// in between a pair of calls to BeginWaitCursor and EndWaitCursor.
// It is permissable to call RestoreWaitCursor, even if
// BeginWaitCursor was not previously called. This case is
// illustrated below, where CMyView::AnotherFunction does not
// need to know whether it was called in the context of an
// hourglass cursor.
void CMyView::AnotherFunction()
{
// some processing ... CMyDialog dlg;
dlg.DoModal();
RestoreWaitCursor(); // some more processing ...
}// If the dialog is invoked from a member function of
// some non-CCmdTarget, then you can call CWinApp::DoWaitCursor
// with a 0 parameter value to restore the hourglass cursor.
void CMyObject::AnotherFunction()
{
CMyDialog dlg;
dlg.DoModal();
AfxGetApp()->DoWaitCursor(0); // same as CCmdTarget::RestoreWaitCursor
}
EndWaitCursor(); // remove the hourglass cursor