自定义CScrollBar [英] To customize CScrollBar

查看:75
本文介绍了自定义CScrollBar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何从CListctrl获取CScrollbar句柄,然后只有我可以对其进行子类化并向滚动条添加特殊属性


在此先感谢

Hi,
How to get the CScrollbar handle from the CListctrl, then only i can subclass it and add special properties to scrollbar


Thanks in advance

推荐答案

CWnd派生类的标准滚动条是窗口非客户区域的一部分.没有获取可用于子类化的句柄的方法.

请参阅CP文章如何为CListCtrl设置外观,包括滚动条和列标题 [ ^ ]来实现.
The standard scroll bars of CWnd derived classes are parts of the non-client area of the window. There are no methods to get their handles that can be used for subclassing.

See the CP article How to skin CListCtrl including scrollbars and column headers[^] for a possible implememtation.


这篇关于自定义CScrollBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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