在MFC代码中隐藏ScrollBar [英] Hiding ScrollBar in MFC code

查看:102
本文介绍了在MFC代码中隐藏ScrollBar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从列表中隐藏ScrollBar。



我尝试使用EnableScrollBarCtrl(),ShowScrollBar()但它不起作用

解决方案

我认为这篇文章可能会对你有所帮助。

隐藏CListCtrl中的滚动条


如果是水平/垂直滚动条,请从列表中删除WS_HSCROLL / WS_VSCROLL样式。你可以使用SetWindowLongPtr函数。


你好,



解决这个问题应该很容易。每个MFC组件类都有一个接受TRUE / FALSE值或窗口显示模式的方法 ShowWindow()。该方法来自类 CWnd ,其中继承了其他组件。请参阅 MSDN



调用此方法可以解决您的问题。



祝你好运,

JK

How can I hide ScrollBar from a List.

I tried to using EnableScrollBarCtrl(), ShowScrollBar() but it doesnt work

解决方案

I think this article may help you.
Hide scrollbars from a CListCtrl


If it is Horizontal/vertical scroll bar, remove the WS_HSCROLL/WS_VSCROLL style from your list. You can make use of SetWindowLongPtr functions.


Hi,

sollution of this issue should be quite easy. Every, MFC component class has a method ShowWindow() that accepts TRUE/FALSE values or the window display-mode. The method comes from the class CWnd, from which other componens are inherited. See documentation of this method at MSDN

Calling this method should solve your problem.

Best regards,
J. K.


这篇关于在MFC代码中隐藏ScrollBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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