readling listbox in another app
This is kind of a repost. I wanted to go ahead and register.
Thanks to the help I have received so far, I now am using FindWindow and FindwindowEx to get my listbox. The problem now is when I try and send a message it fails an IsWindow assert.
I decided to bypass the Cwnd::SendMessage which does the assert and went with ::SendMessage which takes the hwnd asa parameter. This works, (doesn't give me an error) but does not return any usefull info.
This just prints a block character.
Cwnd *pParentWnd = FindWindow("Afx:40000:b...", NULL);
Wnd=FindWindowEx( ChildWnd, NULL, "ListBox", NULL);
Any further help would be greatly appreciated.