Provides methods that control display pointers so that you can mark sections of an HTML document for editing based on the on-screen rendering of a document.
GetDisplayGravity Gets the display gravity for the display pointer. GetFlowElement Gets the innermost element containing the display pointer that is a flow layout element. GetLineInfo Gets information about the line that the display pointer is on. GetPointerGravity Gets the pointer gravity for the display pointer. IsAtBOL Determines whether the display pointer is at the beginning of a line. IsEqualTo Determines whether two display pointers specify the same position in the markup of an HTML document. IsLeftOf Determines whether the display pointer that this interface refers to is to the left of another one. IsPositioned Determines whether the display pointer has been positioned. IsRightOf Determines whether the display pointer that this interface refers to is to the right of another one. MoveToMarkupPointer Moves this display pointer to the position of a markup pointer. MoveToPoint Moves this display pointer to the specified coordinates on a page. MoveToPointer Moves this display pointer to the position of another display pointer. MoveUnit Moves a display pointer to the specified position. PositionMarkupPointer Positions a markup pointer at the location of the display pointer to which this interface refers. QueryBreaks Determines whether a line break or a block break, if any, occurs at the display pointer's location. ScrollIntoView Scrolls the location that is indicated by the display pointer into view. SetDisplayGravity Sets the display gravity for the display pointer. SetPointerGravity Sets the pointer gravity for the display pointer. Unposition Sets the display pointer to an unpositioned state.
IDisplayServices and IDisplayPointer work with markup pointers ( IMarkupServices2, IMarkupContainer2, and IMarkupPointer2) to give you editing control that includes information about how a document is rendered on the screen, and the horizontal and vertical positioning of elements and lines of text. These interfaces enable you to translate a user's on-screen input (for instance, a mouse click near a line of text) into editing operations.
Use the IDisplayServices::CreateDisplayPointer method to create IDisplayPointer interface pointers.
Stock Implementation mshtml.dll Custom Implementation No Inherits from IUnknown Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 5.5 Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 4.0