
This interface provides the access methods to pass and control the contents and characteristics of a dialog window.
This object is a container for various options that can to be passed as arguments into a dialog windows presented from the browser.
IHTMLOptionsHolder Methods
HRESULT get_document(
IHTMLDocument2 **p
);
Returns a pointer to the document that the dialog is parented by.
HRESULT get_fonts(
IHTMLFontNamesCollection **p
);
Returns a IHTMLFontNamesCollection pointer for a collection of all the system-supported fonts.
HRESULT put_execArg(
VARIANT v
);
Sets the variant argument; this allows additional user-data parameters to be passed in.
See also get_execArg
HRESULT get_execArg(
VARIANT *p
);
Retrieves the variant argument of any additional parameters that were passed in.
See also put_execArg
HRESULT put_errorLine(
long v
);
Sets the inline script associated with the onerror event on the IHTMLOptionsHolder element. This value indicates the line number that an error occurred at and is generally used to report script errors.
For more information on inline script, see Attaching an Event Handler in the Understanding the Event Model documentation.
See also get_errorLine
HRESULT get_errorLine(
long *p
);
Retrieves the inline script associated with the onerror event on the IHTMLOptionsHolder element. This value indicates the line number that an error occurred at and is generally used to report script errors.
For more information on inline script, see Attaching an Event Handler in the Understanding the Event Model documentation.
See also put_errorLine
HRESULT put_errorCharacter(
long v
);
Sets the count of the character on the line where an error occurred.
See also get_errorCharacter
HRESULT get_errorCharacter(
long *p
);
Retrieves the count of the character on the line where an error occurred.
See also put_errorCharacter
HRESULT put_errorCode(
long v
);
Sets the error code for the error being reported.
See also get_errorCode
HRESULT get_errorCode(
long *p
);
Retrieves the current error code for the error being reported.
See also put_errorCode
HRESULT put_errorMessage(
BSTR v
);
Sets the string text for the error message to be displayed.
See also get_errorMessage
HRESULT get_errorMessage(
BSTR *p
);
Retrieves the string text of the error message to be displayed.
See also put_errorMessage
HRESULT put_errorDebug(
VARIANT_BOOL v
);
Set the Boolean value indicating whether to debug this error or not.
See also get_errorDebug
HRESULT get_errorDebug(
VARIANT_BOOL *p
);
Retrieves the Boolean value indicating whether to debug this error.
See also put_errorDebug
HRESULT put_productVersion(
BSTR v
);
Sets the string indicating the product version information.
See also get_productVersion
HRESULT get_productVersion(
BSTR *p
);
Retrieves the string indicating the product version information.
See also put_productVersion
HRESULT get_unsecuredWindowOfDocument(
IHTMLWindow2 **p
);
Retrieves the IHTMLWindow2 interface pointer to the parent document's window. This in not wrapped by a security proxy, thus is not considered secure.
HRESULT put_findText(
BSTR v
);
Sets the text with which to seed a find operation.
See also get_findText
HRESULT get_findText(
BSTR *p
);
Retrieves the text used in a find operation.
See also put_findText
HRESULT sizes(
BSTR fontName,
IHTMLFontSizesCollection **pSizesCollection
);
Receives the IHTMLFontSizesCollection pointer to a collection of the sizes available for the font that is passed in as a parameter.
HRESULT openfiledlg(
VARIANT initFile,
VARIANT initDir,
VARIANT filter,
VARIANT title,
BSTR *pathName
);
Opens the system open file dialog window.
See also savefiledlg
HRESULT savefiledlg(
VARIANT initFile,
VARIANT initDir,
VARIANT filter,
VARIANT title,
BSTR *pathName
);
Opens the system save file dialog.
HRESULT choosecolordlg(
VARIANT initColor,
long *rgbColor
);
Opens the system color picker dialog box.
HRESULT showSecurityInfo(
void
);
Opens the Internet security information dialog box for the zone based on the document's URL.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.