Re: WM_SETTEXT in Wind\ows 7
One immediate thought, WM_SETTEXT is UNICODE, you need to send a UNICODE string. Try:
SendMessage(hwnd_child,WM_SETTEXT,0,(LPARAM)L"Test");
If that doesn't work, post what you are getting for output.
-Erik
Re: WM_SETTEXT in Wind\ows 7
Yup, still not working.
lResult = SendMessage(hwnd_child,WM_SETTEXT,0,(LPARAM)L"Test");
Returns true, but nothing is changed in the receiving app.
Re: WM_SETTEXT in Wind\ows 7
SendMessageA works, it doesn't update graphically but it's a hidden window, reading the text off it displays the expected information.
=) thanks
Re: WM_SETTEXT in Wind\ows 7
Sounds like you are using MBCS code and UNICODE flags.
WM_SETTEXT also comes in rootbeer versions WM_SETTEXTA and WM_SETTEXTW.
Try specifying which one.
-Erik