I would like to capture selected messages from another application similar to the way Spy++ 64 does. I don't have a clue where to start. I guess I need something like WndProc only it would fire for external application not my application.
I looked at the code in the post Capture all Windows Messages and am not sure it will actually do what I want and I would like a VB.Net Solution.
What I am trying to do is to hook the WM_PAINT message from another application. Take Notepad as a simple example. In Spy++ 64 I would click Spy->Log Messages, target the textbox body area of Notepad, Click the General checkbox on the Messages Tab and every time Notepad is repainted Spy++ 64 shows: 00140A1C P WM_PAINT
Does anyone have any ideas or can you point me in the right direction?