WM_CLOSE [英] WM_CLOSE

查看:95
本文介绍了WM_CLOSE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

有没有人有任何代码可以捕获发送到另一个应用程序的WM_CLOSE消息(或任何

窗口消息)?

TIA,

Steve

Hello,
Does anyone have any code that will catch a WM_CLOSE message (or any
window message) sent to another application?

TIA,
Steve

推荐答案

也许这会有所帮助..
http:// msdn.microsoft.com/library/de...dproctopic.asp


Imran。


" Steven" <无**** @ spam.com>在消息中写道

news:ex ************** @ TK2MSFTNGP09.phx.gbl ...
maybe this will help..
http://msdn.microsoft.com/library/de...dproctopic.asp

Imran.

"Steven" <no****@spam.com> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
你好,有没有人有任何代码可以捕获发送到另一个应用程序的WM_CLOSE消息(或任何
窗口消息)?

TIA,
Steve
Hello,
Does anyone have any code that will catch a WM_CLOSE message (or any
window message) sent to another application?

TIA,
Steve



谢谢,Imran,这基本上就是这个想法,但我需要为另一个

应用程序做这件事。想象一下这个场景:我的应用程序(app1)正在运行,另一个应用程序

(app2)正在运行。用户交互关闭App2,生成WM_CLOSE

。 App1需要捕获WM_CLOSE,确定它的目标是谁b $ b,并通过更新它的app1应用程序显示来做出相应的响应。任何

想法?


史蒂夫


" Imran Koradia" <无**** @ microsoft.com>在消息中写道

新闻:uG ************* @ TK2MSFTNGP11.phx.gbl ...
Thanks, Imran, that''s basically the idea, but I need to do it for another
application. Imagine this scenario: my app (app1) is running, another app
(app2) is running. App2 is closed by user interaction and WM_CLOSE is
generated. App1 needs to catch the WM_CLOSE, determine who it is destined
for, and respond accordingly by updating it''s app1 application display. Any
ideas?

Steve

"Imran Koradia" <no****@microsoft.com> wrote in message
news:uG*************@TK2MSFTNGP11.phx.gbl...
也许这会有所帮助..
http://msdn.microsoft.com/library/de...dproctopic.asp
伊姆兰。

史蒂文 <无**** @ spam.com>在消息中写道
新闻:ex ************** @ TK2MSFTNGP09.phx.gbl ...
maybe this will help..
http://msdn.microsoft.com/library/de...dproctopic.asp
Imran.

"Steven" <no****@spam.com> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
你好,
有没有人有任何会捕获发送到另一个应用程序的WM_CLOSE消息(或任何
窗口消息)的代码?

TIA,
Steve
Hello,
Does anyone have any code that will catch a WM_CLOSE message (or any
window message) sent to another application?

TIA,
Steve




如果我理解正确,你试图在应用程序中捕获另一个

应用程序(app2)的WM_CLOSE (app1),对吗?据我所知,我不认为你

可以捕获另一个应用程序在一个应用程序中引发的事件,如果它实际上是你所暗示的那么。但是,我可能错了。

你想用这种方式的任何具体原因?也许还有其他一些方法来完成你想要做的事情。更多细节可能

帮助..


Imran。


" Steven" <无**** @ spam.com>在消息中写道

news:uO ************** @ tk2msftngp13.phx.gbl ...
If I understand correctly, you''re trying to catch the WM_CLOSE of another
app (app2) in your app (app1), right? As far as I know, I don''t think you
can catch events raised in one application from another application if that
is in fact what you are implying. However, I may be wrong.
Any specific reason why you want to it this way? Maybe there''s some other
way to accomplish what you are attempting to do. A little more detail might
help..

Imran.

"Steven" <no****@spam.com> wrote in message
news:uO**************@tk2msftngp13.phx.gbl...
谢谢,Imran,那个基本上是这个想法,但我需要为另一个
应用程序做这件事。想象一下这个场景:我的应用程序(app1)正在运行,另一个应用程序
(app2)正在运行。 App2因用户交互而关闭,并生成WM_CLOSE。 App1需要捕获WM_CLOSE,确定它的目标是什么,并通过更新它的app1应用程序显示来做出相应的响应。
有什么想法吗?

史蒂夫

Imran Koradia <无**** @ microsoft.com>在消息中写道
新闻:uG ************* @ TK2MSFTNGP11.phx.gbl ...
Thanks, Imran, that''s basically the idea, but I need to do it for another
application. Imagine this scenario: my app (app1) is running, another app
(app2) is running. App2 is closed by user interaction and WM_CLOSE is
generated. App1 needs to catch the WM_CLOSE, determine who it is destined
for, and respond accordingly by updating it''s app1 application display. Any ideas?

Steve

"Imran Koradia" <no****@microsoft.com> wrote in message
news:uG*************@TK2MSFTNGP11.phx.gbl...
也许这会有所帮助..
maybe this will help..


http://msdn.microsoft.com/library/de...dproctopic.asp


伊姆兰。

史蒂文 <无**** @ spam.com>在消息中写道
新闻:ex ************** @ TK2MSFTNGP09.phx.gbl ...

Imran.

"Steven" <no****@spam.com> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
你好,
有没有人有任何会捕获发送到另一个应用程序的WM_CLOSE消息(或任何
窗口消息)的代码?

TIA,
Steve
Hello,
Does anyone have any code that will catch a WM_CLOSE message (or any
window message) sent to another application?

TIA,
Steve





这篇关于WM_CLOSE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆