EM_GETLINE error C++ Get last Line from Textbox
问题 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 lResult; lResult = SendMessage( hwnd, WM_GETTEXT, 500, (LPARAM)param); //lResult = SendMessage( hwnd, EM_STREAMOUT, SF_RTF, (LPARAM)param); //lResult = SendMessage( hwnd, EM_GETLINE,