CB_SETDROPPEDWIDTH
An application sends the CB_SETDROPPEDWIDTH message to set the maximum allowable width, in pixels, of the list box of a combo box with the CBS_DROPDOWN or CBS_DROPDOWNLIST style. CB_SETDROPPEDWIDTH
wParam = (WPARAM) wWidth, // width of list box, in pixels
lParam = 0, // not used, must be zero
Parameters
wWidth
Specifies the width of the list box, in pixels.
Return Values
If the message is successful, The return value is the new width of the list box. If the message fails, the return value is CB_ERR.Res
By default, the minimum allowable width of the drop-zdown list box is 0. The width of the list box is either the minimum allowable width or the combo box width, whichever is larger.
An application sends the CB_SETDROPPEDWIDTH message to set the maximum allowable width, in pixels, of the list box of a combo box with the CBS_DROPDOWN or CBS_DROPDOWNLIST style. CB_SETDROPPEDWIDTH
wParam = (WPARAM) wWidth, // width of list box, in pixels
lParam = 0, // not used, must be zero
Parameters
wWidth
Specifies the width of the list box, in pixels.
Return Values
If the message is successful, The return value is the new width of the list box. If the message fails, the return value is CB_ERR.Res
By default, the minimum allowable width of the drop-zdown list box is 0. The width of the list box is either the minimum allowable width or the combo box width, whichever is larger.
解决方案 »
- MSCOMCT2.OCX 问题
- 如何设置自定义OCX的图标(加载到工具箱内后所显示的图标)
- 请教用ShellExecute调用net.exe的语句例子?谢谢
- 急求助数据库查询方面的代码
- 关于GetWindowText函数,高手请进~
- 请问VB中如何将含有picturebox的窗体打印出来?
- 网络连接问题
- 吸海垂虹谢谢 但不是数据库如何作
- 请问如何令picturebox控件的一部分透明,以使得form上的背景图不被挡住??
- ?那位大吓晓得那有VB5\6的反编译的程序。我急用,可的高分(c
- 粗浅问题请教!!!!!!!!!!!!
- 帮忙运行一下代码!!!!急!急!急!急!急!急!急!急!急!(在线等候)
#define CB_SETDROPPEDWIDTH 0x0160翻译为VB是:
{Public|Private} Const CB_GETDROPPEDWIDTH = &H15F&
{Public|Private} Const CB_SETDROPPEDWIDTH = &H160&
Dim nResult As Integer
nResult = SendMessage(Combo1.hwnd, CB_SETDROPPEDWIDTH, 4000, 0)
End Sub返回值是零!------------而不是传说中的“new width of the list box”。赫赫大虾再救救命!小弟我实在是菜的可以!