Home > Software engineering > Using HOOK to intercept a specified window message, hope to give a code, pseudo code can also
Using HOOK to intercept a specified window message, hope to give a code, pseudo code can also
Time:11-08
In the picture X (closed), send WM_CLOSE program to the window, close a few times, found that the window cannot be started, must restart the system to restart the program,
Is there any way to get "what send when you click on the X" news ". With the realization of the rights of the HOOK, such as, give some code!!!!!
CodePudding user response:
X is shut, will receive [u] WM_SYSCOMMAND SC_CLOSE [/u] news