em-getline

EM_GETLINE fails when Spy++ is running

There is an edit box in some dialog in my application, which is running on Windows XP. When I issue EM_GETLINE on this control, it returns its contents and it's ok, but when I start Spy++ the control suddenly starts behaving incorreclty and always returns an empty string. What might be a problem? ...

EM_GETLINE error C++ Get last Line from Textbox

Hello ! I'm having a minor problem with EM_GETLINE. I have a textbox I want to extract the text from. The box keeps updating all the time (it's a log file thet keeps updating, last message at the bottom). All I want is that very last line. My code: HWND hwnd = (HWND)0x00020A72; TCHAR param[1000]; char display[1000]; LONG lR...