Home COM GDI+ WebBrowser Data Access

ISelectionServices Interface

 

IID_ISelectionServices

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

 

 

This interface provides methods to programmatically clear, add content to, and remove content from the selection object.

 

Documentation: ISelectionServices Interface

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ISelectionServices Method

Description

SetSelectionType

Sets the selection type and clears any existing selection.

GetMarkupContainer

Retrieves the markup container for the current editable selection.

AddSegment

Creates an ISegment interface for the content between two markup pointers in a markup container, and adds the segment to the editable selection.

AddElementSegment

Creates an IElementSegment interface for an element in a markup container and adds the segment to the editable selection.

RemoveSegment

Removes a segment from the editable selection.

GetSelectionServicesListener

Retrieves an ISelectionServicesListener interface for the current editable selection so that the editor can process certain selection events.

 

SetSelectionType

 

FUNCTION ISelectionServices_SetSelectionType ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL eType AS LONG _
, BYVAL pIListener AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING ISelectionServices_SetSelectionType (pthis, eType, pIListener) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetMarkupContainer

 

FUNCTION ISelectionServices_GetMarkupContainer ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppIContainer AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING ISelectionServices_GetMarkupContainer (pthis, ppIContainer) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

AddSegment

 

FUNCTION ISelectionServices_AddSegment ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pIStart AS DWORD _
, BYVAL pIEnd AS DWORD _
, BYREF ppISegmentAdded AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING ISelectionServices_AddSegment (pthis, pIStart, pIEnd, ppISegmentAdded) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

AddElementSegment

 

FUNCTION ISelectionServices_AddElementSegment ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pIElement AS DWORD _
, BYREF ppISegmentAdded AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[6] USING ISelectionServices_AddElementSegment (pthis, pIElement, ppISegmentAdded) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

RemoveSegment

 

FUNCTION ISelectionServices_RemoveSegment ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pISegment AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[7] USING ISelectionServices_RemoveSegment (pthis, pISegment) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetSelectionServicesListener

 

FUNCTION ISelectionServices_GetSelectionServicesListener ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppISelectionServicesListener AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[8] USING ISelectionServices_GetSelectionServicesListener (pthis, ppISelectionServicesListener) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Monday, 03 April 2006 20:03:56 +0200