某个窗体unload时,Windows会发送什么消息?
某个窗体unload时,Windows会发送什么消息?
我可以拦截吗? (该窗体是其他程序的,我想在它Unload之前记录下上面textbox的文字)
问题点数:30、回复次数:6Top
1 楼zyl910(编程的乐趣在于编程控制硬件,与用图形学实现绚丽效果)回复于 2002-11-10 19:52:39 得分 30
WM_QUIT
The WM_QUIT message indicates a request to terminate an application and is generated when the application calls the PostQuitMessage function. It causes the GetMessage function to return zero.
WM_QUIT
nExitCode = (int) wParam; // exit code
Parameters
nExitCode
Value of wParam. Specifies the exit code given in the PostQuitMessage function.
Return Values
This message does not have a return value, because it causes the message loop to terminate before the message is sent to the application's window procedure.
QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Top
2 楼zyl910(编程的乐趣在于编程控制硬件,与用图形学实现绚丽效果)回复于 2002-11-10 19:53:29 得分 0
跨进程拦截消息的方法我一直没找到Top
3 楼Intelement(零℃)回复于 2002-11-10 22:08:59 得分 0
HOOK?Top
4 楼zhangxu421(Sniper)回复于 2002-11-10 22:16:49 得分 0
To zyl910:
明白了.在VB中根本不可能接收到Windows发给其他进程的消息.即使Hook也是如此.
不过,还是有些不死心.我想记录下本地所输入的密码(就是有星号的那种),我应该怎么做呢?
(见过一个程序,可以记录下所有击键记录,用的是Hook.但我只想记录下星号密码)
谢谢了Top
5 楼lingll(blog.csdn.net/lingll/)回复于 2002-11-10 22:19:26 得分 0
在98下非常简单,
在2k下,我也想知道方法Top
6 楼zhangxu421(Sniper)回复于 2002-11-10 22:22:22 得分 0
To lingll:
能不能先说说在98下怎么实现呀?Top




