如何在MFC上更改列表框的垂直滚动条? [英] How to change vertical scrollbar of list box on MFC?

查看:328
本文介绍了如何在MFC上更改列表框的垂直滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



我制作了一个由'CWnd'课程派生的'ScrollbarEx'课程。



我想用滚动条类替换列表框的滚动条。



可能吗?



请告诉我。 :)



谢谢。



我尝试了什么:



我制作了一个由'CWnd'类派生的'ScrollbarEx'类。

Hi all.

I made a 'ScrollbarEx' class derived by 'CWnd' class.

I want to replace scrollbar of list box with my scrollbar class.

Is it possible??

Please advise me. :)

Thank you.

What I have tried:

I made a 'ScrollbarEx' class derived by 'CWnd' class.

推荐答案

这是有可能的但是相当复杂。



您可以查看两篇关于使用自定义滚动条的CodeProject文章:

自定义滚动条库1.1版 [ ^ ]

用自定义滚动条控件替换窗口的内部滚动条[ ^ ]
It is possible but rather complicated.

You may have a look at two CodeProject articles about using custom scrollbars:
Custom Scrollbar Library version 1.1[^]
Replace a Window's Internal Scrollbar with a customdraw scrollbar Control[^]


这篇关于如何在MFC上更改列表框的垂直滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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