ON_EVENT
来源:互联网 发布:java自定义加密算法 编辑:程序博客网 时间:2024/06/05 07:41
ON_EVENT
Use the ON_EVENT macro to define an event handler function for an event fired by an OLE control.
ON_EVENT(theClass, id, dispid, pfnHandler, vtsParams )
Parameters
- theClass
The class to which this event sink map belongs.
- id
The control ID of the OLE control.
- dispid
The dispatch ID of the event fired by the control.
- pfnHandler
Pointer to a member function that handles the event. This function should have a BOOL return type, and parameter types that match the event's parameters (see vtsParams). The function should return TRUE to indicate the event was handled; otherwise FALSE.
- vtsParams
A sequence of VTS_ constants that specifies the types of the parameters for the event. These are the same constants that are used in dispatch map entries such as DISP_FUNCTION.
Remarks
The vtsParams argument is a space-separated list of values from the VTS_ constants. One or more of these values separated by spaces (not commas) specifies the function's parameter list. For example:
VTS_I2 VTS_BOOL
specifies a list containing a short integer followed by a BOOL.
For a list of the VTS_ constants, see EVENT_CUSTOM.
- ON_EVENT
- ON_EVENT参数
- ON_EVENT 报错
- 调用一款强大的人工智能平台
- 柯南君:看大数据时代下的IT架构(9)消息队列之RabbitMQ--案例(RPC起航)
- Android关于横竖屏切换的讨论
- EAS设置边框满屏显示
- android屏幕适配
- ON_EVENT
- 2014年末--IT之路的一次总结
- 十条有用的 Go 技术
- 手机应用注册时,获取国际电话区号列表完美解决方案
- JAVA验证码生成
- 谷歌发布Android Studio开发工具1.0正式版(组图)
- JAVA 线程的两种基本实现方法(继承Thread类和实现Runnable接口)
- js构建form表单 以post方式提交 一般用于导出文件
- Unicode(UTF-8, UTF-16)、Ansi、GB2312、GBK等编码介绍