OK, your example (post 14) works very nice but I do have a concern. On the app I am subclassing I get an error message everytime I close that app even though i have already closed the subclassing app. The error message occurs no matter how or when I close the subclassed app.

Error message box =

Project1.exe - Application Error

The instruction at "0x734b37f4" referenced memory at "0x00000000". The memory could not be "read".

Click on OK to terminate the program.