Determining If an Object Is Capable of Visual Editing (99045)
The information in this article applies to:
- Microsoft OLE Libraries for Windows and Win32s 2.0
- Microsoft OLE Libraries for Windows and Win32s 2.01
- Microsoft OLE Libraries, when used with:
- the operating system: Microsoft Windows NT 3.5
- the operating system: Microsoft Windows NT 3.51
- the operating system: Microsoft Windows NT 4.0
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 2000
This article was previously published under Q99045 SUMMARY
It is impossible for a container to consistently determine whether an
object will attempt negotiation for visual editing. However, by
determining whether the object supports the IOleInPlaceObject
interface, the container may want to assume that the negotiation will
occur.
The default object handler will always fail a call to QueryInterface
for IOleInPlaceObject if the object is in the loaded state. The
container must first run the object and then query for the
IOleInPlaceObject interface. If this QueryInterface call succeeds,
then the container can assume that the object supports visual editing,
and may start negotiation on the execution of a verb.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | KB99045 |
---|
|