AfxGetApp() - > EndWaitCursor()没有隐藏游标 [英] AfxGetApp()->EndWaitCursor() is not hiding cursor

查看:49
本文介绍了AfxGetApp() - > EndWaitCursor()没有隐藏游标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我有虚拟虚拟列表控件。我正在根据uers选择的过滤器更新列表控件。

In my application I have virtual virtual list control. I am updating the list control based on filters selected by the uers.

更新列表控件时,我正在对数据进行排序并调用SetItemCount()。

When updating the list control I am sorting the data and calling SetItemCount().

我正在使用AfxGetApp() - > BeginWaitCursor();和  AfxGetApp() - > EndWaitCursor();更新列表控件时,但EndWaitCursor没有隐藏等待光标。如果我点击对话框或控件,光标将被隐藏。

I am using AfxGetApp()->BeginWaitCursor(); and AfxGetApp()->EndWaitCursor(); while updating the list control but the EndWaitCursor is not hiding the waiting cursor. If I click on the dialog or control the cursor is getting hided.

我的对话框是属性页的子对话框。

My dialog is child dialog of property page.

我的代码

AfxGetApp()->BeginWaitCursor(); sorting code calling SetItemCount()

AfxGetApp() - > EndWaitCursor();

AfxGetApp()->EndWaitCursor();


什么可能是光标没有被隐藏的原因?任何猜测?

What could be the reason why the cursor is not getting hided? Any guesses?

推荐答案


在我的应用程序中,我有虚拟虚拟列表控件。我正在根据uers选择的过滤器更新列表控件。

In my application I have virtual virtual list control. I am updating the list control based on filters selected by the uers.

更新列表控件时,我正在对数据进行排序并调用SetItemCount()。

When updating the list control I am sorting the data and calling SetItemCount().

我正在使用AfxGetApp() - > BeginWaitCursor();和  AfxGetApp() - > EndWaitCursor();更新列表控件时,但EndWaitCursor没有隐藏等待光标。如果我点击对话框或控件,光标将被隐藏。

I am using AfxGetApp()->BeginWaitCursor(); and AfxGetApp()->EndWaitCursor(); while updating the list control but the EndWaitCursor is not hiding the waiting cursor. If I click on the dialog or control the cursor is getting hided.

我的对话框是属性页的子对话框。

My dialog is child dialog of property page.

我的代码

AfxGetApp()->BeginWaitCursor();
sorting code
calling 
SetItemCount()AfxGetApp()->EndWaitCursor();


可能是光标没有得到的原因墙根?任何猜测?

What could be the reason why the cursor is not getting hided? Any guesses?


CWaitCursor类
可能更容易使用。


这篇关于AfxGetApp() - > EndWaitCursor()没有隐藏游标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆