SpyWindowFinalizer and Windows Message Hooking

One very powerful API that some UI developers may not be aware of is SetWindowHookEx.  This api allows you to intercept all types of window messages before (or after) they are processed. You can use this to do a whole range of neat things.  For instance, you can log all messages in your app.  You…