在MFC中显示ListView控件的问题 [英] Issue with displaying the ListView Control in MFC
问题描述
您好,
我有一个用MFC编写的遗留代码,它有一个ListView控件(监视工具),显示使用TCP /连接的所有UI(窗体) IP。
I have a legacy code written in MFC which has a ListView control(Monitoring tool) which shows all the UI(Form) connected using TCP/IP.
监控工具使用CSocket :: OnReceive从UI工具获取信息,并且显示不显示平滑过渡。有很多文本消失并再次出现。我的意思是重新涂抹不顺畅。
The Monitoring tool gets the information from the UI tool using CSocket::OnReceive is called and the display does not show a smooth transition. There is a lot of text that disappear and appear again. I mean the repaint is not smooth.
我应该寻找哪种API或打电话让重新涂抹更顺畅?
Which API should I be looking for or making a call to to make repaint smoother ?
请让我知道是否有人遇到过这样的问题(在vs2010中)。
Please let me know if anyone has faced such issue(in vs2010).
谢谢
-Megha
推荐答案
我使用过CListCtCtrl: :SetRedraw(FALSE)在对控件进行许多更改时暂停绘制,并且在完成更改时调用CListCtrl :: SetRedraw(TRUE),然后调用CListCtrl :: RedrawWindow。
I have used CListCtCtrl::SetRedraw(FALSE) to suspend painting when making many changes to a control, and when the changes are done call CListCtrl::SetRedraw(TRUE) followed by CListCtrl::RedrawWindow.
这篇关于在MFC中显示ListView控件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!