I've written some code to give me the text of an edit box in AOL. I would like to detect when a change occurs in that edit box. Currently I would have to poll the the edit box and compare its current text with the last poll. However, I'm looking for a more elegant way to do it such as capturing a WM message from the edit box or some similar way. Any thoughts on how I could do this? Working code sample would be appreciated.
Here's the function I use to obtain the edit box text:
ie := FindWindow(pchar('AOL Frame25'),nil);
worker := FindWindowEx(ie,0,'AOL Toolbar',nil); toolbar := FindWindowEx(worker,0,'_AOL_Toolbar',nil);
comboboxex := FindWindowEx(toolbar, 0, '_AOL_Combobox', nil);
edit := FindWindowEx(comboboxex,0,'Edit',nil);
result := GetText(edit);