For example, write a standard DLL, and then through injection or other methods to make it loaded. Subclassing in it.Responds to an event based on the message ID of each menu。
For example,SetWindowsHookEx?
For example,SetWindowsHookEx?