请问FireEvent函数的功能是什么?

解决方案 »

  1.   

    COleControl::FireEvent
    void FireEvent( DISPID dispid, BYTE FAR* pbParams, ... );ParametersdispidThe dispatch ID of the event to be fired.pbParamsA descriptor for the event’s parameter types.ResCall this function, with any number of optional arguments, to fire a user-defined event from your control. Usually this function should not be called directly. Instead you will call the event-firing functions generated by ClassWizard in the event map section of your control’s class declaration.
      

  2.   

    通过连接点COM接口向连接点的另一方发送通知,有点类似回调的机制,却不是回调
    产生事件,通常是控件的连接点向控件容器的连接点接口发出通知,使容器对事件进行处理