IAPI::InputComboBox

property InputComboBox.

Displays an input combobox. By default, it is centered with the parent window.

 

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

Parameters

hWndParent

[in] .   Handle of parent window

Title

[in] .   Text into title bar and can be customised (e.g "Titre|&Ok|&Annuler" or "Title|&Ok&Cancel")

DataType

[in] .   The following types are supported:

         - alphanumeric  (0),
         - integer  (1),
         - floating (2),
         - password (3)

         - handle of string table created by MallocStringTable().

   Moreover, if this handle is turned to negative, no new input value is permitted

x

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

y

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

pVal

[out, retval] The returned value is the selected 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