I was staring at a completely unfamiliar window in a client project and had no idea what procedure it came from. It was a form, so I didn't know what the original caption was and the strings on the window were pretty generic. I needed a way to figure out what procedure this was. Instead of spending time doing searches I decided to chance tactics and use the WindowsInitCode procedure from the Icetips Utilities to do it for me. I explain the process in my latest Icetip.
What I did was to create a control on the window with the procedure name, as well as put it in the window caption and send it to DebugView with OutputDebugString (ODS method available in all Icetips classes)
Enjoy.