Displays a Prompt dialog box with a message, an input field, and OK and Cancel buttons.
Syntax
HRESULT prompt( BSTR message, BSTR defstr, VARIANT *textdata );
Parameters
- message
- String (BSTR) that specifies the message to display in the dialog box.
- defstr
- String (BSTR) that specifies the default value of the input field. If this parameter is NULL, the dialog box displays the value <undefined>.
- textdata
- Address of a VARIANT structure that receives the text that the user enters into the input field.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
The title bar of the prompt dialog box cannot be changed.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
See Also