摘要
用Slider控件的滑动来实时控制视图平滑地缩放,利用控件的范围控制缩放大小.程序通过VC++的消息反射机制,添加必要的消息映射函数,实现用Slider控件控制图形显示区的目的.结合VC++平台,用Sli-der控件能方便地实现控制视图缩放,也比单纯放大缩小视图要直观连续,更适合用户的需要.同时,利用同样的思想,也可以很方便地实现其他界面上的改进.
The Slider controls' sliding can control the smoothness of the view zooming in and out and its range can control the scope of the zooming . By the message map of VC ++ , Slider control can work with the view easily via using some nessary function. Combining VC ++ ,it' s easy to control the zooming of view by slider control. This method is more intuitionisticand and continuous than the single "zoom out" and "zoom in" button ,it is more suitable to users. The similar ideas can be used in other contact surfaces.
出处
《华北水利水电学院学报》
2007年第4期69-71,共3页
North China Institute of Water Conservancy and Hydroelectric Power