InsertItem中使用SetRedraw
来源:互联网 发布:python马踏棋盘算法 编辑:程序博客网 时间:2024/06/05 04:55
SetRedraw 的用法:
SetRedraw(FALSE):关闭视图更新;
SetRedraw(TRUE) :开启视图更新;
说明:
常用到insertitem这个函数的地方会用到此函数,如:树控件和list控件添加数据,
扯到insertitem这个函数的原因是,insertitem在添加数据时,每添加一项就会更新一下视图,这过会增加耗时.所以循环添加数据时就关掉,添加完后再开启更新.
代码:
//m_ctrlFileList是一个list控件变量m_ctrlFileList.SetRedraw(FALSE); //删除redrawflag就算改也不会重画while(ass>0){ //插入数据; m_ctrlFileList.InsertItem(ItemIndex,FileName); m_ctrlFileList.SetItemText(ItemIndex,1,FileSize); m_ctrlFileList.SetItemText(ItemIndex,2,StartTime); m_ctrlFileList.SetItemText(ItemIndex,3,StopTime); m_ctrlFileList.SetItemText(ItemIndex,4,Property); }m_ctrlFileList.SetRedraw(TRUE); //设置重画表示
阅读全文
0 0
- InsertItem中使用SetRedraw
- setredraw()的使用
- setredraw
- 怎样使用CListCtrl控件中InsertItem和SettItemtext函数
- CListCtrl 类中InsertItem, InsertColumn, SetItemText 的使用
- Viewer使用技巧之setRedraw(false)
- pb中window的windowstate属性与setredraw函数
- ListCtrl中InsertItem的函数实现
- CListCtrl控件中InsertItem和SetItemText函数
- CListCtrl控件中InsertItem和SetItemText函数
- CListCtrl控件中InsertItem和SetItemText函数
- VC++中InsertItem和SetItemText的区别
- CListCtrl控件中InsertItem和SetItemText函数
- CListCtrl控件中InsertItem和SetItemText函数
- CListCtrl控件中InsertItem和SettItemtext函数的用法简介
- CListCtrl控件中InsertItem和SettItemtext函数的用法简介
- CListCtrl控件中InsertItem和SettItemtext函数的用法简介
- CListCtrl控件中InsertItem和SettItemtext函数的用法简介
- leetcode 436. Find Right Interval
- nginx与SElinux
- Android常用工具之加密方式
- 问题集锦——(一)Android Studio的Gradle添加重复依赖的问题
- sprintf
- InsertItem中使用SetRedraw
- unity初学一
- JavaWeb中的九大内置对象概述
- \Perhaps you are running on a JRE rather than a JDK?
- php 跨域 form提交 2种方法
- Struts---防止表单重复提交Interceptor的一个应用
- JS---Tom大叔五道题&&其他博客、帖子梳理
- Hadoop之Flume框架学习(笔记20)
- 百练_2708:平衡饮食