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

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

于 2022-05-31 发布 文件大小:205.32 kB
0 114
下载积分: 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 个回复

  • Chat
    在VS2005的编程环境下,利用套接字的编程原理,可以实现网络聊天功能。(On the basic of VS2005, take advantage of the principle of Socket to achieve the ability to communicate online.)
    2014-04-11 09:18:47下载
    积分:1
  • OpenGL8
    OPENGL编程的红宝书系列,适合系统学习OpenGL!(OPENGL Programming Red Treasure Book Series, suitable for system learning OpenGL!)
    2019-01-01 15:24:34下载
    积分:1
  • TSP-GA
    使用遗传算法解决TSP问题,简单,通用,鲁棒性好(The use of genetic algorithm to solve the TSP problem, simple, universal, robust and good)
    2010-01-05 11:35:26下载
    积分:1
  • Ransac
    RASANC去除无效点,实际测试,效果不错。(RASANC remove invalid points, good results.)
    2011-11-14 10:20:09下载
    积分:1
  • LPC1766-BURST_8
    LPC1766中的AD转换采用BURST模式,对8个通道进行电压采集,并将每个通道的数据进行均值滤波、数据转换,存入8个独立的数组中。(AD converter in LPC1766 BURST mode voltage collected eight channels, and each channel s data mean filtering, data conversion, stored in eight separate array. )
    2012-11-27 18:49:28下载
    积分:1
  • ch452a
    IIC总线协议芯片CH452驱动代码,配合数码管和按键,适合快速移植。(IIC bus agreement CH452 chip driver code, with digital tube and buttons, suitable for rapid transplantation. )
    2012-07-22 09:58:45下载
    积分:1
  • lex
    词法分析器又称扫描器。词法分析是指将我们编写的文本代码流解析为一个一个的记号,分析得到的记号以供后续语法分析使用。词法分析器的工作是低级别的分析:将字符或者字符序列转化成记号。(Lexical analyzer, also known as scanners. Lexical analysis refers to the text of the code we write flow analysis for a token one, analyze the resulting syntax notation for subsequent analysis. Lexical analyzer' s job is low-level analysis: the character or sequence of characters converted into tokens.)
    2015-03-22 23:19:56下载
    积分:1
  • 双重 ADC 同步规则DMA实验
    用STM32双重ADC功能采集两路电压,并将其中一路电压通过串口发送出去(Using STM32 dual ADC function to collect two voltage channels and send one voltage through serial port)
    2020-06-21 12:00:02下载
    积分:1
  • ex-06
    说明:  fluent修改材料属性(粘度)UDF案例(fluent文件及UDF源代码)(UDF case of modifying material properties (viscosity) by fluent (fluent file and UDF source code))
    2020-12-05 18:43:46下载
    积分:1
  • MyMessenger
    网络数据通信案例——MyMessenger 代码使用说明 ============================================================== 将系统编译输出可执行文件的路径设为工程文件之外的bin文件夹。 系统运行之前,在binConf文件夹中的Profile.xml文件中先设定几 个远端通信目标的名字和ID号。 与远端通信目标的短消息收发都记录在在binCHAT文件夹下。 接受的文件传输都在binRECV文件夹下。(Network Data Communications Case- MyMessenger code for use ======================================== ====================== system compiler output path to the executable file as project file outside the bin folder. System before bin Conf folder document Profile.xml first several remote communication objectives set name and ID. And remote communication goals short message to send and receive are recorded in the bin CHAT folder. Accept the file transfer in the bin RECV folder.)
    2009-02-21 14:24:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载