cGetCBCount

Gets a count of items in a Combo Box control.

Syntax:

cGetCBCount (window-handle)

Parameters:

(i) window-handle window handle to a Combo Box control.

Return:

(i) count number of items in Combo Box.

 

Note: Get the handle of the parent window of the Combo Box control.

 

Example:

AddExtender("wwctl44i.dll",0,"wwctl64i.dll")

hwnd = cWndbyclass(hwndParent, "ComboBox") ; Get the number of items in the List Box. nCount = cGetCbCount(hwnd) Message("Number of items in combo box", nCount) EndIf

See Also:

cSetCBItem