An ActiveX control or other code that manipulates a DHTML document can change the appearance of the document by using the
IHTMLDocument2::createStyleSheet() method to add a style sheet to the document.
Before the installation of the
May 15, 2002, Cumulative Patch for Internet Explorer, the style sheet can be drawn from a resource in the executable file. For example:
hr = pDoc->createStyleSheet("res://c:\\mypath\\myctl.dll/101", -1, &pStyleSheet);
After installing the
May 15, 2002, Cumulative Patch for Internet Explorer, if the HTML document does not come from either the local computer or from a trusted site, you receive the following error message:
For more information about the May 15, 2002, cumulative patch, see the "References" section.