Click to return to the Reusing Browser Technology home page    
IHTMLWindow2::close Metho...     IHTMLWindow2::execScript ...     IHTMLWindow2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLWindow2::confirm Method


Displays a Confirm dialog box with the specified message, and OK and Cancel buttons.

Syntax

HRESULT confirm(
    BSTR message,
    VARIANT_BOOL *confirmed
);

Parameters

message
String (BSTR) that specifies the message to display in the dialog box.
confirmed
Address of a VARIANT Boolean structure that receives VARIANT_TRUE if the message is confirmed, or VARIANT_FALSE otherwise.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The title bar of the confirm dialog box cannot be changed.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

alert, prompt



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.