We are writing a plugin for an existing VB6 application (via COM interop), and we are requiring some functionality that they do not support. We could easily get the required functionality if we could somehow receive an event for when a particular control's text on their window changes.
We can already grab their existing window handle of the control with FindWindow and get the text with GetWindowText.
Is there any unmanaged/pinvoke method to receive an event when the text on a window is changed?
We do not want to poll with a while loop--we may want to do this on several of their controls in the future.
PS - I know there are ways to intercept p/invoke calls (google EasyHook), but we do not want to intercept every call to SetWindowText. We just want to receive it for one control, and using something like EasyHook is probably adding unnecessary complexity.