如何使用C ++/VC ++代码平移窗口 [英] How to Pan a window using C++/VC++ code

查看:85
本文介绍了如何使用C ++/VC ++代码平移窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

在MFC/Win32中是否有任何API可以像在Auto cad或Pro-E中那样平移窗口.

如果需要平移,那就是在绘制圆后,如何在VC ++中做到这一点

谢谢,

问候,
Maha

Hello!!

Is there any API available in MFC/Win32 to pan a window as in Auto cad or Pro-E.

That is after drawing circle if we need to pan, how to do that in VC++

Thanks,

Regards,
Maha

推荐答案

http://msdn.microsoft.com/en-us/library/bdea5dt6(v = vs.80).aspx [
http://msdn.microsoft.com/en-us/library/bdea5dt6(v=vs.80).aspx[^]

With this functionality you can scroll a part of your window in any direction you want. The part of the screen that becomes invalid has to be explicitely invalidated so that it causes a repaint for that part of the screen only.
Your paint routine should be written as such that it is smart enough to only paint those elements on the screen that have become invalid. This way you can make your screen seem like it is moving without annoying flickering.


这篇关于如何使用C ++/VC ++代码平移窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆