IViewObjectEx interface

An extension derived from IViewObject2 to provide support for:

  • Enhanced, flicker-free drawing for non-rectangular objects and transparent objects
  • Hit testing for non-rectangular objects
  • Control sizing


The IViewObjectEx interface has these methods.

Method Description
IViewObjectEx::GetNaturalExtent Provides sizing hints from the container for the object to use as the user resizes it.
IViewObjectEx::GetRect Retrieves a rectangle describing a requested drawing aspect.
IViewObjectEx::GetViewStatus Retrieves information about the opacity of the object, and what drawing aspects are supported.
IViewObjectEx::QueryHitPoint Indicates whether a point is within a given aspect of an object.
IViewObjectEx::QueryHitRect Indicates whether any point in a rectangle is within a given drawing aspect of an object.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ocidl.h

See Also