message info

This object is only used in the message dbx files.

The message is separated in several objects which are organized in a single linked list. The pointer to the first one can be retrieved from the corresponding message info object. To get the whole message text you have to walk along the links and put the text segments together.

message
The header
positiontypedescription
(1)int4object marker
(2)int4length of the body
(3)int4length of the text segment in the body
(4)int4pointer to the next message object
The body
positiontypedescription
(5)textthe length of this text segment is stored in(3)
(6) free space if (3) is smaller then (2)

All message objects have a size of 0x210 bytes. 0x10 bytes for the header and 0x200 bytes for the text segment. Even if the text is shorter the whole space is reserved, but (3) provides the real length.

OE stores the message text with 0x0d 0x0a at the end of each line and no terminating 0x00.

MsgInfo V1.00(一)、说明一个用来察看当前进程中消息的控件,D6环境编译。(二)、属性1、ShowType: MSGHex: 是否显示消息ID(16进制) MSGDec: 是否显示消息ID(10进制) MSGStr: 是否显示消息ID(字符串) MsgClassName:是否显示窗体类名 MsgHwnd: 是否显示窗体句柄 MsgWParam: 是否显示消息WParam值 MsgLParam: 是否显示消息LParam值2、DefineClassName: 允许(禁止)显示消息的窗体类名,如TForm13、DefineMsg: 允许(禁止)显示的消息ID,如$0005、wm_paint4、DefineState: EnableMsg: DefineMsg不为空串时,False禁止显示加入DefineMsg的消息,True只显示加入DefineMsg的消息 EnableClassName: DefinClassName不为空串时,False禁止显示加入DefineClassName的消息,True只显示加入DefineMsg的消息 EnableHwnd: 设置了AddDefineHwnd后,False禁止显示ADDDefineHwnd加入的窗体句柄消息,True则只显示加入的窗体句柄消息 EnableClassName和EnableHwnd设置不一致时,以EnableClassName为准5、DisableFrequent:是否过滤掉WM_NCHITTEST、WM_SETCURSOR、WM_ENTERIDLE、WM_NOTIFY出现频繁的消息6、HookType: 设置钩子类型7、Activate: 是否激活钩子(三)、方法1、AddDefineHwnd(): 加入的句柄为允许(禁止)显示消息的窗体句柄(可加入多个)2、Clear: 清空消息信息(四)、事件HookMethod: 可以在此事件中自行处理钩子,钩子返回值Result默认为0 注意在处理CBT钩子的HCBT_CreateWnd时,设计期拖放到窗体的控件还未创建,使用这些控件的属性和方法会出现异常。 (五)、文件MsgInfo.txt是参考文件,必须放入执行程序当前目录。此文件可自定义或扩充,无需排序格式:第一行表示消息ID的十六进制字符串,如$0005,必须$开头 第二行表示消息ID的字符串常量,如WM_Size 第三行表示该消息的说明(可省略)MsgResult.txt显示结果(六)、制作双元软件工作室http://shuangyuan.wx-e.com/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值