PDA

Click to See Complete Forum and Search --> : Subclassing The Caption Property of a Form


spetnik
Jul 13th, 2001, 01:59 PM
How would I subclass the caption property of a form?

Jordan
Jul 18th, 2001, 12:29 AM
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).

spetnik
Jul 18th, 2001, 09:34 AM
Jordan, you're a little late :D, but thanx anyway. WM_GETTEXT was the one to use. Thank you all for the help.

Megatron
Jul 18th, 2001, 09:50 AM
Just a small grammatical correction ;)

You subclass the window, not the property.

spetnik
Jul 18th, 2001, 09:59 AM
yes u r right. But you know what i meant :)