开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 9247|回复: 16
收起左侧

[已解决] 易语言发送消息问题

 关闭 [复制链接]
结帖率:100% (5/5)
发表于 2010-7-26 16:45:03 | 显示全部楼层 |阅读模式   四川省成都市
5精币
问题.jpg   如图,  易语言自带的外型框,本生在按下鼠标左键是不可以移动的,但是使用了发送信息这个命令就可以使窗口在外型框上按下鼠标左键使窗口移动,

虽然达到了目的,但是我不知道发送信息 161 的时候为什么要附加参数2  这个参数2的意思是什么。希望高手解答。   谢谢!!!

最佳答案

查看完整内容

. 移动控件 控件.发送信息 (274, 61458, 0) 其中参数1的值自6145761471都可用,结果是一样的,都是移动控件。还有一个大家都熟,就是控件.发送信息 (161, 2, 0) 2.调整控件尺寸 控件.发送信息 (274, 61441, 0) (274,61442,0) (274,61443,0) (274,61444,0) (274,61445,0) (274,61446,0) (274,61447,0) ...

回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳
结帖率:100% (2/2)
发表于 2010-7-26 16:45:04 | 显示全部楼层   河南省新乡市
. 移动控件
                  控件.发送信息 (274, 61458, 0)
                  其中参数1的值自6145761471都可用,结果是一样的,都是移动控件。还有一个大家都熟,就是控件.发送信息
                  (161, 2, 0)
                  2.调整控件尺寸
                  控件.发送信息 (274, 61441, 0) (274,61442,0) (274,61443,0)
                  (274,61444,0) (274,61445,0) (274,61446,0) (274,61447,0)
                  (274,61448,0)
                  分别对应调整控件的左宽度 右宽度 顶高度 西北角 东北角 底宽度 西南角 东北角的尺寸。
                  此外,控件.发送信息(161,10,0) (161,11,0) (161,12,0) (161,13,0)
                  (161,14,0) (161,15,0) (161,16,0) (161,17,0)
                  也是分别对应调整控件的左宽度 右宽度 顶高度 西北角 东北角 底宽度 西南角 东北角的尺寸。
                  3。控件最大化
                  控件.发送信息 (274, 61450, 0)其中参数1的值自6148861503都可用,结果是一样的。
                  4。控件最小化
                  控件.发送信息 (274, 61473, 0)其中参数1的值自6147261487都可用,结果是一样的。
                  5。马上启动屏幕保护(如果电脑里没设置屏幕保护本信息不起作用)
                  发送信息 (274, 61760, 0)其中参数1的值自6176061776都可用,结果是一样的。
                  6.出对话框--15秒进入待机(win98下可用,winXP无效,其他未试)
                  控件.发送信息 (274, 61840, 0)其中参数1的值自6184061854都可用,结果是一样的。
                  7。击控件后鼠标带问号,再击后消失。
                  控件.发送信息 (274, 61836, 0)
                  8。关闭窗口
                  控件.发送信息 (16, 0, 0)
                  9。发送控件鼠标左键被按下的信息
                  控件.发送信息 (513, 0, 0)
                  10。发送控件鼠标左键被放开的信息
                  控件.发送信息 (514, 0, 0)
                  11。清除窗口的标题
                  控件.发送信息 (12, 0, 0)
                  以下是易记事本里的:
                  12。复制
                  编辑框.发送信息 (769, 0, 0)
                  13。粘帖
                  编辑框.发送信息 (770, 0, 0)
                  14。全选
                  编辑框.发送信息 (177, 0, -1)
回复

使用道具 举报

结帖率:100% (5/5)
 楼主| 发表于 2010-7-26 17:14:45 | 显示全部楼层   四川省成都市
没有人....自己顶起
回复

使用道具 举报

结帖率:0% (0/1)
发表于 2010-7-26 17:42:35 | 显示全部楼层   浙江省杭州市
windows消息查询器.rar (678.33 KB, 下载次数: 417)
回复

使用道具 举报

结帖率:99% (121/122)

签到天数: 3 天

发表于 2010-7-26 17:46:42 | 显示全部楼层   贵州省贵阳市
本帖最后由 xiaoyu1986 于 2010-7-26 17:47 编辑

带高手解释这个参数的意义!!!嘿嘿、、、我是用的 发送信息 (274, 61458, 0)
这个也是同样的效果,高手解释吧。。。
后面的参数是啥意思安!!!???
回复

使用道具 举报

结帖率:100% (5/5)
发表于 2010-7-26 18:21:21 | 显示全部楼层   浙江省温州市
回复 4# xiaoyu1986


    {:3_229:} 仅仅五金币。要我打N行字谁会打。。。


  简单的说。就是widnows的消息。。。
回复

使用道具 举报

结帖率:100% (5/5)
 楼主| 发表于 2010-7-26 20:19:16 | 显示全部楼层   四川省成都市
回复 5# 冷情

{:3_215:}   您那么多钱还贪钱,您 就讲讲麻。
回复

使用道具 举报

结帖率:100% (5/5)
发表于 2010-7-26 20:59:02 | 显示全部楼层   浙江省温州市
SendMessage
The SendMessage function sends the specified message to a window or windows. It calls the window procedure for the specified window and does not return until the window procedure has processed the message.

To send a message and return immediately, use the SendMessageCallback or SendNotifyMessage function. To post a message to a thread's message queue and return immediately, use the PostMessage or PostThreadMessage function.

LRESULT SendMessage(
  HWND hWnd,      // handle to destination window
  UINT Msg,       // message
  WPARAM wParam,  // first message parameter
  LPARAM lParam   // second message parameter
);
Parameters
hWnd
[in] Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows.
Msg
[in] Specifies the message to be sent.
wParam
[in] Specifies additional message-specific information.
lParam
[in] Specifies additional message-specific information.
Return Values
The return value specifies the result of the message processing; it depends on the message sent.

Remarks
Applications that need to communicate using HWND_BROADCAST should use the RegisterWindowMessage function to obtain a unique message for inter-application communication.

If the specified window was created by the calling thread, the window procedure is called immediately as a subroutine. If the specified window was created by a different thread, the system switches to that thread and calls the appropriate window procedure. Messages sent between threads are processed only when the receiving thread executes message retrieval code. The sending thread is blocked until the receiving thread processes the message. However, the sending thread will process incoming nonqueued messages while waiting for its message to be processed. To prevent this, use SendMessageTimeout with SMTO_BLOCK set. For more information on nonqueued messages, see Nonqueued Messages.

Windows 95/98/Me: SendMessageW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems.

Example Code
回复

使用道具 举报

结帖率:100% (5/5)
 楼主| 发表于 2010-7-26 23:29:30 | 显示全部楼层   四川省成都市
{:3_221:}   纯天书!  我的妈呀
回复

使用道具 举报

结帖率:0% (0/2)
发表于 2010-7-27 12:04:18 | 显示全部楼层   浙江省杭州市
郁闷。。。 不懂
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 诚聘英才| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 800073686,邮箱:800073686@b.qq.com
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表