登录
首页 » c++ » VC滚动视图(CScrollView类)的局部更新算法示例

VC滚动视图(CScrollView类)的局部更新算法示例

于 2022-05-31 发布 文件大小:205.32 kB
0 97
下载积分: 2 下载次数: 1

代码说明:

在使用CScrollView(滚动视图)类时,不需要在其OnDraw/OnPaint中全部进行重绘;只需获取其update region,绘制落在此区域内的对象即可。这样可以提高显示效率,减少闪烁。 在拖动窗口大小时(WM_SIZE消息),update region是整个客户区;在点击或者拖放滚动条时(或者使用了CScrollView::ScrollToPositon函数),update region是相应的局部矩形(即新出现在在窗口中的部分)。不管是那种情况,可以将update region转换至“用户坐标系”,遍历用户在此坐标系中打算绘制的对象,确定哪些对象落在了update region内,以便进行重绘。这样,在CScrollView::OnDraw/OnPaint中仅需绘制少量对象即可。(非update region内的图形由Windows负责填充)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • LCD1602-lock
    LCD1602显示的液晶密码锁,第一行显示显示固定密码,第二行显示输入密码,密码输入完毕后会有正确或者错误提示,为了演示方便,提示密码,输入密码部分也没有用星号代替。可以自行更换成星号。(The LCD1602 display LCD password lock, the first line shows the the display fixed password, and the second line enter the password after password input will be correct or error, and to demonstrate the convenience, prompting the password, enter the password part is not replaced with asterisks. Replaceable asterisk.)
    2012-10-11 16:59:08下载
    积分:1
  • Delphi游戏编程导学 Delphi游戏编程导学
    Delphi游戏编程导学 Delphi游戏编程导学-Delphi Games Programming Delphi Games Programming Guidance Guidance
    2023-07-28 06:25:03下载
    积分:1
  • MTK-LCD--driver-program
    MTK LCD driver program
    2012-03-29 22:36:10下载
    积分:1
  • ADC_UART
    本程序用STC-ISP Ver 3.0A.PCB的下载编程工具测试通过,相关的A/D转换结果在P1口上显示 (This procedure using STC-ISP Ver 3.0A.PCB download programming tools tested, the related A/D conversion results shown in the P1 port)
    2010-06-02 12:00:18下载
    积分:1
  • BOMBMAN
    WINDOS FUNCTION LINKED LIST
    2013-04-16 19:51:25下载
    积分:1
  • pwm_calc
    Pic micro PWM calculator
    2015-12-15 22:48:49下载
    积分:1
  • 4.01
    HSQARKH 完整源码,这只是一个初步代码,用来实现ARK,做隐藏方面研究的. (HSQARKH complete source code, this is just a preliminary code that is used to achieve ARK, so hidden aspects of the study.)
    2010-01-17 14:56:41下载
    积分:1
  • ChaosImageCode
    一个用VC编的混沌图像加密程序,演示了如何读写图像,如何用混沌算法加密解密。(a program for encrypting image by chaos algorithm,based on VC.)
    2017-11-03 09:36:54下载
    积分:1
  • C#天气预报程序,系统会自动删除debug和release目录,所以请不要将文件放在这两个目录下...
    C#天气预报程序,系统会自动删除debug和release目录,所以请不要将文件放在这两个目录下-C# Forecast procedure, the system will automatically delete the debug and release directory, so please do not file on these two directory
    2022-04-22 00:55:01下载
    积分:1
  • 上三角矩阵类的实现
    上三角矩阵类的实现-triangular matrices on the realization
    2023-04-12 20:00:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载