Sending the CB_SHOWDROPDOWN message to a combo box opens or closes its drop-down list box section. Naturally, this message only works if the combo box has a list that can be dropped down, instead of always or never displaying it.
This message always returns a non-zero value.
None.
Const CB_SHOWDROPDOWN = &H14F
' This code is licensed according to the terms and conditions listed here.
' Declarations and such needed for the example:
' (Copy them to the (declarations) section of a module.)
Public Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hWnd _
As Long, ByVal Msg As Long, wParam As Any, lParam As Any) As Long
Public Const CB_SHOWDROPDOWN = &H14F
' Display the drop-down list box of combo box Combo1.
Dim retval As Long ' return value
retval = SendMessage(Combo1.hWnd, CB_SHOWDROPDOWN, ByVal CLng(1), ByVal CLng(0))
Back to the Message list.
Back to the Reference section.
Last Modified: April 16, 2000
This page is copyright © 2000 Paul Kuliniewicz.
Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/c/cb_showdropdown.html