自定义消息发送字符串
来源:互联网 发布:scratch for windows 编辑:程序博客网 时间:2024/05/16 10:32
定义消息
const
WM_WMS_ACTIONBTN = WM_USER + 1;
发送消息
var
aControlName: string;
begin
aControlName := Self.Name;
SendMessage(Parent.Handle, WM_WMS_ACTIONBTN, 0, Integer(PChar(aControlName)));
inherited;
end;
接收消息
procedure WMS_MSG_WMSACTIONBTN(var message: TMessage); message WM_WMS_ACTIONBTN;
procedure TWMSPanel.WMS_MSG_WMSACTIONBTN(var message: TMessage);
var
aStrName: string;
begin
aStrName := PChar(message.LParam);
showmessage(aStrName );
end;
0 0
- 自定义消息发送字符串
- 自定义消息发送unicode或ascii字符串
- 自定义消息及发送
- 总结:发送自定义消息
- 总结:发送自定义消息
- 总结:发送自定义消息
- 总结:发送自定义消息
- MFC - 发送自定义消息
- 定义和发送自定义消息
- 使用postmessage发送自定义消息
- SendMessage发送自定义消息及消息响应
- ROS---发送自定义消息,接收消息
- 使用回调函数发送自定义“消息”
- VC++6.0中如何发送自定义消息
- VC++6.0中如何发送自定义消息
- 自定义消息的发送与接收处理
- 发送消息到自定义窗体类
- 自定义消息的发送与响应:
- iOS 获取应用程序缓存大小
- vector erase
- div居中
- 有关C语言单元测试的探讨(三)
- 2013年第4季度冲锋衣品牌网络知名度排名
- 自定义消息发送字符串
- insmod: error inserting './igb.ko': -1 Unknown symbol in module 的问题所在
- magento email:发送自定义邮件
- setValue和setObject的区别
- Magento Transactional Emails常规设置
- 手机产品设计之用户引导
- magento email:快速实现发送自定义邮件
- win7系统日志分支删除方法
- Ubuntu12.04下使用Jlink Command烧写u-boot到mini2440 nand flash