scrollToPosition 参数到底是什么?
解决方案 »
- 求助大神
- vc++ 调用 C# 的dll时报错?
- 菜单中如何插入已完成的对话框
- 外部调用对话框,修改标题时报错
- 求一个 tcp/ip的好的代码示例(一个服务带10个客户各自互发信息的) 不要www.vckbase.com里面的例子,最好是多线程的
- 请教一个判断的算法。
- 怎么样才能引起内存泄漏,请举例说明
- 猜牌游戏,搞不懂电脑是如何猜到我心里默认的那一张牌?请教高手其中编程的玄机...(送百分了!)
- ................................怎样在列表框里放按钮?..............
- 为什么我的可用分1905,参与分316,可我每次提问题,却只能最多给35分呢?有的人却可给几百分?不明白
- 请问只有.rc资源和代码文件怎么建工程,难道要重新建一个新的工程然后再覆盖吗
- 请高手看一下我这程序~~~
目标位置里,窗口里显示部分的左上角在实际视图中的坐标位置。
举个例子,假如你的视图是2000*1000的,ScrollToPosition(POINT(200,100))的作用就是把(200,100)这个点放到窗口的左上角。
CScrollView Overview | Class Members | Hierarchy Chart | CScrollView::GetDeviceScrollPosition | CScrollView::SetScaleToFitSize | CScrollView::SetScrollSizes
Call ScrollToPosition to scroll to a given point in the view.void ScrollToPosition(
POINT pt
);
Parameters
pt
The point to scroll to, in logical units. The x member must be a positive value (greater than or equal to 0, up to the total size of the view). The same is true for the y member when the mapping mode is MM_TEXT. The y member is negative in mapping modes other than MM_TEXT.