itDigitGenerationEvent 接口 (tapi3if.h)

ITDigitGenerationEvent 接口包含描述数字生成事件的方法。 当应用程序的 ITTAPIEventNotification::Event 方法实现指示TAPI_EVENT等于TE_GENERATEEVENT时,该方法的 pEvent 参数是 ITDigitGenerationEvent 接口的 IDispatch 指针。 此接口的方法可用于报告需要生成 DTMF 数字的调用。 此接口由应用程序实现,由 TAPI 3 DLL 调用。

注意 必须调用 ITTAPI::p ut_EventFilter 方法,并设置包含 TE_GENERATEEVENT 事件的事件筛选器掩码,以便能够接收数字生成事件。 如果不调用 ITTAPI::p ut_EventFilter,应用程序将不会收到任何事件。 有关详细信息,请参阅 事件 概述。
 

继承

ITDigitGenerationEvent 接口继承自 IDispatch 接口。 ITDigitGenerationEvent 还具有以下类型的成员:

方法

ITDigitGenerationEvent 接口具有以下方法。

 
ITDigitGenerationEvent::get_Call

get_Call 方法返回需要事件的调用的 ITCallInfo 接口指针。
ITDigitGenerationEvent::get_CallbackInstance

get_CallbackInstance 方法获取指向与事件关联的回调实例的指针。 (ITDigitGenerationEvent.get_CallbackInstance)
ITDigitGenerationEvent::get_GenerationTermination

get_GenerationTermination 方法获取指示生成的数字系列末尾的数字。
ITDigitGenerationEvent::get_TickCount

get_TickCount 方法获取自 Windows 开始) 完成数字生成以来的“刻度计数” (毫秒数。

要求

要求
目标平台 Windows
标头 tapi3if.h (包括 Tapi3.h)

请参阅

事件

IDispatch

ITTAPI::RegisterCallNotifications

ITTAPIEventNotification

注册事件代码片段