Click to See Complete Forum and Search --> : Always NULL in EditBox by SPY++


Masaaki Onishi
March 28th, 1999, 09:02 PM
Hi, all.


I need to get the string from EditBox of the other application.

After I get the window handle of EditBox on the other app,

I couldn't get the string by GetWidnowText() or replace it by SetWindowText().

After I checked SPY++, EditBox is always empty even though the string

exists in Editbox.

After all, I made the EditBox on my app, I get the same string by GetWindowText

because I copy and paste the string from other app to my app.


Even though I got my goal, this is a little frustrated to me.

Does anyone know smarter soultion of this?


Thank you in advance.

-Masaaki Onishi-

Lavrent
November 3rd, 1999, 04:02 AM
It should help

char cz[255];
memset(cz, 0, sizeof(cz));
::SendMessage((HWND)0x???<SpyIt>, WM_GETTEXT, (WPARAM)sizeof(cz), (LPARAM)cz);