IAPI::InputListBox

property InputListBox.

Displays an input listbox with custom title, for example: Title="List of items|OK|Cancel|Select/Unselect all".

By default, it is centered with parent window.

 

HRESULT InputListBox(
  long hWndParent,
  BSTR Title,
  long DataType,
  long x,
  long y,
  BSTR * pVal
);

Parameters

hWndParent

[in] .   Handle of parent window

Title

[in] .   Title or custom text elements.

DataType

[in] .   Handle of string table created by MallocStringTable().

Moreover, if this handle is turned to negative, no sorting is applied to the list.

x

[in,defaultvalue(-1)] . x position

y

[in,defaultvalue(-1)] . y position

pVal

[out, retval]

. The returned value is a string multi selected values separated with '|' or an empty string

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI