Export (0) Print
Expand All

OnChangeType method

Called by the editor when a selection's type changes.

Syntax


HRESULT retVal = object.OnChangeType(eType, pIListener);

Parameters

eType [in]

Type: SELECTION_TYPE

SELECTION_TYPE enumeration that specifies the new selection type.

pIListener [in]

Type: ISelectionServicesListener

Optional. Pointer to an ISelectionServicesListener interface to register with the new selection. Can be set to NULL.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The ISelectionServices::SetSelectionType method changes the selection type and will trigger a call to this method.

Use this method to implement any custom processing that should take place when a selection is initiated or changes type.

See also

ISegmentList::GetType

 

 

Community Additions

ADD
Show:
© 2014 Microsoft