setredraw
来源:互联网 发布:淘宝一天刷多少单合适 编辑:程序博客网 时间:2024/05/18 23:27
CWnd::SetRedraw
This method allows changes to be redrawn or to prevent changes from being redrawn.
This method sets or clears the redraw flag. While the redraw flag is cleared, the contents will not be updated after each change and will not be repainted until the redraw flag is set. For example, an application that needs to add several items to a list box can clear the redraw flag, add the items, and then set the redraw flag. Finally, the application can call the Invalidate or InvalidateRect method to cause the list box to be repainted.
void SetRedraw(BOOL bRedraw = TRUE );
Parameters
- bRedraw
- Specifies the state of the redraw flag. If this parameter is TRUE, the redraw flag is set; if FALSE, the flag is cleared.
Example
// Updating a control or window with large amounts of data may cause// flicker. In such cases it may be better to turn off drawing.//... //m_list is a member of type CListCtrl m_List.SetRedraw(FALSE); // Turn drawing off regardless of list mode.//...// Update control//... m_List.SetRedraw(TRUE); // Turn drawing back on and update the window. // Invalidate the entire control, force painting. m_List.Invalidate(); m_List.UpdateWindow();
Requirements
Windows CE versions: 1.0 and later
Header file: Declared in Afxwin.h
Platform: H/PC Pro, Palm-size PC, Pocket PC
- setredraw
- 控件.重绘 setredraw
- setredraw()的使用
- InsertItem中使用SetRedraw
- Viewer使用技巧之setRedraw(false)
- pb中window的windowstate属性与setredraw函数
- 关于flex在做项目中遇到的问题
- mysql.class.php
- Hdu 最大报销额(DP)
- rhel5下编译php环境
- javay调用动态链接库
- setredraw
- 不知道谁写的这么棒,看了就哭了
- C++ 库汇总(网址+简介)
- 按键控制显示LED亮度
- jQuery 1.4特性介绍
- C#泛型的优点
- ARM-linux的启动流程
- 利用正则表达式计算含有中文的字符串长度
- 算法导论习题2.3-4 插入排序递归算法2