如何避免MFC CScrollview中的滚动条 [英] How can avoid scroll bar in MFC CScrollview

查看:514
本文介绍了如何避免MFC CScrollview中的滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个基于MFC dov视图的应用程序以进行图像查看.在零售滚动属性时,我需要避免在视图区域的右侧和底部显示滚动条(即,需要滚动图像),我试图使用SetScrollInfo方法禁用它,但是当文档大小大于时它显示为灰色视图也减少了有效视图面积.由于不需要,可以避免滚动条显示保留滚动属性吗?

I''m creating an MFC dov-view based application for image viewing. I need to avoid scroll bars displayed in right & bottom side of the view area while retailing the scroll property (ie. need to scroll the image) I tried to to disable it using SetScrollInfo method but it showing as Gray while doc size is greater than view which also reducing the effective view area also. As I don''t need it can I avoid scrollbar display retaining scroll property?

推荐答案

也许对您有用:
MSDN [
Maybe this works for you:
MSDN[^]

Simply call
ShowScrollBar( SB_BOTH, FALSE ); // To hide
ShowScrollBar( SB_BOTH/*, TRUE*/ ); // To show


这篇关于如何避免MFC CScrollview中的滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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