-
VC滚动视图(CScrollView类)的局部更新算法示例
在使用CScrollView(滚动视图)类时,不需要在其OnDraw/OnPaint中全部进行重绘;只需获取其update region,绘制落在此区域内的对象即可。这样可以提高显示效率,减少闪烁。
在拖动窗口大小时(WM_SIZE消息),update region是整个客户区;在点击或者拖放滚动条时(或者使用了CScrollView::ScrollToPositon函数),update region是相应的局部矩形(即新出现在在窗口中的部分)。不管是那种情况,可以将update region转换至“用户坐标系”,遍历用户在此坐标系中打算绘制的对象,确定哪些对象落在了update region内,以便进行重绘。这样,在CScrollView::OnDraw/OnPaint中仅需绘制少量对象即可。(非update region内的图形由Windows负责填充)
- 2022-05-31 22:04:39下载
- 积分:1
-
soft
能够实现土壤水分和光照度的数据的显示与保存(Data can be achieved degree of soil moisture and light display and preservation)
- 2014-06-23 20:20:53下载
- 积分:1
-
2048小游戏
实现小游戏2048的基本功能,以及各个方向的滑动,相加(Realize the Basic Functions of 2048 Small Game)
- 2020-06-20 19:00:02下载
- 积分:1
-
IAPWS-IF97
说明: IAPWS-IF97 c语言实现
计算水或水蒸汽各性质(IAPWS-IF97 c for water /stream P/T)
- 2020-11-29 16:39:29下载
- 积分:1
-
Long-integer
长整数运算(双向链表),实现长整数无限长加减法的运算(Long integer (two-way linked list), to achieve long-integer addition and subtraction of infinite computing)
- 2011-10-29 16:54:42下载
- 积分:1
-
DS18B20 - 曲线拟合
说明: 结合曲线拟合,进行温度的曲线判断,里面加入了最小二乘法,最要应用于STM32ZET6芯片(Fitting temperature curve)
- 2019-05-21 16:26:47下载
- 积分:1
-
touch
触摸屏的手势识别程序,实现放大缩小、平移、旋转等操作,对于触摸屏的多媒体软件开发展示有很大的借鉴作用。(Touch screen gesture recognition program to achieve zoom, pan, rotate, etc., for a touch screen multimedia software development shows a great reference.)
- 2020-11-19 16:29:37下载
- 积分:1
-
FileEncrypt
文件加密解密算法,使用CSharp语言编程实现,有界面。(Document encryption and decryption algorithm, using the CSharp language programming, there are interfaces.)
- 2009-01-03 11:21:55下载
- 积分:1
-
music_code_creater
好用的音乐代码生成器,可以根据五线谱生成对应的单片机代码值,修改到仿真文件运行即可播放音乐。(With the music of the code generator, which can be generated according to the staff value corresponding to the single chip microcomputer code, modify the simulation file operation can play music.)
- 2015-05-21 15:55:42下载
- 积分:1
-
有关树的程序
说明: 《数据结构》中与树相关的程序,包括层次遍历TL,分类二叉树、哈夫曼树、树层次遍历TL等等(Data structure source code implementation)
- 2020-03-23 18:20:55下载
- 积分:1