Remarks The dialog box displays an edit box and OK and Cancel buttons. Without the timeout parameter, the OK button returns the entered text; Cancel returns cDefaultValue. If you specify a value for nTimeout, ESC or a delay beyond the timeout value both return cDefaultValue.