
Using IobjectSafety
The second method for marking a control “safe” is by implementing the
IObjectSafety method within your control. IObjectSafety is a component interface
that’s available in Microsoft Internet Explorer 4.0 and later. It provides methods to
retrieve and set safety options for your Windows applications. It is a simple interface
and has only two methods or members:
■
GetInterfaceSafetyOptions
■
SetInterfaceSafetyOptions
Now, with names like that, it’s hard to get it wrong.The
GetInterfaceSafetyOptions retrieves the safety options that are supported by an
object, and the safety options that are currently set for that object.The
SetInterfaceSafetyOptions ...