force the dropdown list of a combobox to - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
This demo shows how to force the dropdown list of a combobox to the full height of all the items in the list. It's quite useful for short lists where you want all items visible, such as a list of all twelve months. Unfortunately, due to the way Windows is designed, obtaining the hWnd for the ComboLBox (the listbox that drops down) is impossible without subclassing the combo. This sample uses native VB5 subclassing (see HookMe), but could easily be converted to any subclassing control.
这个例子演示了如何定制组合框的下拉列表的高度以显示全部的元素。当使用短列表框,但又想显示所有项目时(如一年中的12个月),这一功能很有用。不幸的是,由于Windows的设计方式,不子类化组合框就没有办法获得它的下拉列表的句柄hWnd 。这个例子使用了纯VB5子类化代码(参考hookMe),但可以容易地转换为子类化其它控件。
来源: http://www.mvps.org/vb/ |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
FullDrop |
 1.0  |
2004-04-18 |
下载 |
|
|