CScrollView::SetScrollSizes
来源:互联网 发布:淘宝不支持国际转运 编辑:程序博客网 时间:2024/05/19 20:38
Call SetScrollSizes when the view is about to be updated. //当视图准备被更新的时候调用该函数
void SetScrollSizes( int nMapMode, SIZE sizeTotal, const SIZE& sizePage = sizeDefault, const SIZE& sizeLine = sizeDefault );Parameters
Call it in your override of the OnUpdate member function to adjust scrolling characteristics when, for example, the document is initially displayed or when it changes size.
You will typically obtain size information from the view's associated document by calling a document member function, perhaps calledGetMyDocSize, that you supply with your derived document class. The following code shows this approach:
当,例如文档初始显示或者是当文档更改了大小的时候,在你覆盖的OnUpdate成员函数中调用该函数用来调整放缩特征。你通常可以从视图的关联文档通过调用一个文档的成员函数来获取尺寸信息,也许是调用GetMyDocSize,这个函数被你集成的文档类所提供。下面的代码展示了这种方法:
CMyScrollDoc* pMyDoc = (CMyScrollDoc*)GetDocument();SetScrollSizes(nMapMode, pMyDoc->GetMyDocSize());
Alternatively, you might sometimes need to set a fixed size, as in the following code:
或者,你也许有时会需要设置一个固定的尺寸,如下面代码所示:
SetScrollSizes(nMapMode, CSize(100, 100));
You must set the mapping mode to any of the Windows mapping modes except MM_ISOTROPIC or MM_ANISOTROPIC. If you want to use an unconstrained mapping mode, call theSetScaleToFitSize member function instead of SetScrollSizes.
必须为窗口映射模式设置映射模式,影射模式排除MM_ISOTROPIC 和 MM_ANISOTROPIC。如果想要使用一个无约束的映射模式,调用SetScaleToFitSize成员函数来代替SetScrollSizes- CScrollView::SetScrollSizes
- 关于CScrollView中SetScrollSizes导致的OnDraw的无限调用
- CScrollView
- CScrollView
- SetScrollSizes函数
- CScrollView用法
- 出现Error: must call SetScrollSizes() or SetScaleToFitSize()
- SetScrollSizes( nMapMode, GetDocument( )->GetMyDocSize( ) )中的MSDN解释
- 使用CScrollView创建滚动
- 填充CScrollview背景
- CScrollView单文本应用程序
- CScrollView的使用
- 在CScrollView中用CRectTracker。
- CView转换成CScrollView
- CScrollView中画图问题
- CScrollView中的坐标问题
- CScrollView的使用 .
- CScrollView的使用
- 位操作将n上调至align的倍数,align为2的倍数
- apache修改httpd.conf禁止ip段
- Java基础之Http协议的理解与总结
- asp.net工具类 XMLProcess
- eclipse就是找不到jre怎么办?
- CScrollView::SetScrollSizes
- Apache Shiro 注解方式授权
- camera 初学者入门 handler preview focus canvas 图片存放 及数据库调用
- 查看Linux服务器的网络连接
- [状压 + 矩阵乘法] HDU 4332 Constructing Chimney
- 秒杀多线程第八篇 经典线程同步 信号量 Semaphore
- ADS编译错误 error:type disagreement for
- Win32 Console解决程序中文乱码
- SMI总线接口,SMI帧结构在MDC和MDIO接口上的流程简述