How would I subclass the caption property of a form?
Printable View
How would I subclass the caption property of a form?
I'm not going to explain how to subclass, as there are many other (better) explanations 2 clicks away. However, I'm almost certain that you can detect a caption change by subclassing your form hWnd and watching for the WM_SETTEXT message.
Try VBAccelerator.com for info. on subclassing (and a DLL to do it for you).
Jordan, you're a little late :D, but thanx anyway. WM_GETTEXT was the one to use. Thank you all for the help.
Just a small grammatical correction ;)
You subclass the window, not the property.
yes u r right. But you know what i meant :)