Creates a modeless dialog box.
Syntax
HRESULT showModelessDialog( BSTR url, VARIANT *varArgIn, VARIANT *options, IHTMLWindow2 **pDialog );
Parameters
- url
- String (BSTR) variable that specifies the URL of the document to load and display.
- varArgIn
- Address of a VARIANT structure that returns a string that specifies the arguments to use when displaying the document. This parameter can be used to pass a value of any type, including an array of values. The dialog box can extract the values passed by the caller from the dialogArguments method of the IHTMLWindow2 object.
- options
- Address of a VARIANT structure that returns a string that specifies the window ornaments for the dialog box.
- pDialog
- Address of a pointer to an IHTMLWindow2 interface that returns the reference to the newly created dialog window.
Return Value
Returns S_OK if successful, or an error code otherwise.
See Also