Home COM GDI+ WebBrowser Data Access

IDisplayServices Interface

 

IID_IDisplayServices

{3050F69D-98B5-11CF-BB82-00AA00BDCE0B}

 

 

This interface provides methods that enable you to work with display pointers and the insertion point as they relate to the on-screen layout.

 

Documentation: IDisplayServices Interface

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IDisplayServices Methods

Description

CreateDisplayPointer

Creates a new IDisplayPointer interface for marking locations in a document or container.

TransformRect

Changes a rectangle's relative frame of reference from one coordinate system to another.

TransformPoint

Changes a point's relative frame of reference from one coordinate system to another.

GetCaret

Retrieves an IHTMLCaret interface that specifies the insertion point in an HTML document.

GetComputedStyle

Retrieves the rendered style, such as bold, italic, and so on, for the element containing a markup pointer.

ScrollRectIntoView

Scrolls a specific rectangular region into view on the display.

HasFlowLayout

Retrieves a value that indicates whether an element is a flow layout element.

 

CreateDisplayPointer

 

FUNCTION IDisplayServices_CreateDisplayPointer ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppDispPointer AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING IDisplayServices_CreateDisplayPointer (pthis, ppDispPointer) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

TransformRect

 

FUNCTION IDisplayServices_TransformRect ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pRect AS RECT _
, BYVAL eSource AS LONG _
, BYVAL eDestination AS LONG _
, BYVAL pIElement AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING IDisplayServices_TransformRect (pthis, pRect, eSource, eDestination, pIElement) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

TransformPoint

 

FUNCTION IDisplayServices_TransformPoint ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pPoint AS POINTAPI _
, BYVAL eSource AS LONG _
, BYVAL eDestination AS LONG _
, BYVAL pIELement AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING IDisplayServices_TransformPoint (pthis, pPoint, eSource, eDestination, pIElement) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetCaret

 

FUNCTION IDisplayServices_GetCaret ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppCaret AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[6] USING IDisplayServices_GetCaret (pthis, ppCaret) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetComputedStyle

 

FUNCTION IDisplayServices_GetComputedStyle ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pPointer AS DWORD _
, BYREF ppComputedStyle AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[7] USING IDisplayServices_GetComputedStyle (pthis, pPointer, ppComputedStyle) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

ScrollRectIntoView

 

FUNCTION IDisplayServices_ScrollRectIntoView ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pIElement AS DWORD _
, BYREF rc AS RECT _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[8] USING IDisplayServices_ScrollRectIntoView (pthis, pIElement, rc) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

HasFlowLayout

 

FUNCTION IDisplayServices_HasFlowLayout ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pIElement AS DWORD _
, BYREF pfHasFlowLayout AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[9] USING IDisplayServices_HasFlowLayout (pthis, pIElement, pfHasFlowLayout) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Monday, 03 April 2006 19:44:11 +0200